我不知道这个的确切名称,所以我不知道我在寻找什么。我在一些编程视频中看到,当光标位于函数内部时,它会显示一条位于函数下方的线,然后向下直到函数作用域的末尾(如下图所示)。
这是一个扩展还是一个设置?我怎样才能启用它?有人可以帮帮我吗?
这显然是最近实施的(2021/22)。我在跑v1.68.1
并且它是可用的。新设置实际上称为bracketPairsHorizontal
。如果为 false,则不会显示水平线。
编辑你的settings.json
文件并添加以下内容:
// Bracket-pair guides
"editor.guides.bracketPairs": true,
"editor.guides.bracketPairsHorizontal": true, // shows horizontal line
"editor.guides.highlightActiveBracketPair": true, // highlight both horizontal and vertical lines
// Bracket-pair colorization
"editor.bracketPairColorization.enabled": false,
"editor.bracketPairColorization.independentColorPoolPerBracketType": true,
// Indentation lines
"editor.guides.indentation": true // shows vertical lines
有些设置相互依赖,例如。bracketPairs
将覆盖indentation
.
以上设置的结果:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)