使代码折叠图标始终显示在Visual Studio代码中

Vin*_*ent 6 visual-studio-code

喜欢使用Visual Studio,但有一点是我总是认为我的代码没有正确缩进,因为实际编辑器的左边缘远离数字.

有没有办法默认显示代码折叠+/-图标?如果你将鼠标悬停在排水沟上,它只显示它们.

顺便说一句,如果有办法改变排水沟的颜色,那么它看起来与编辑器截然不同?

小智 17

要更改装订线的颜色,可以在用户设置中添加以下内容:

"workbench.colorCustomizations": {
    "editorGutter.background": "#abcdef"
}
Run Code Online (Sandbox Code Playgroud)

并显示折叠图标:

"editor.showFoldingControls": "always"
Run Code Online (Sandbox Code Playgroud)

请注意,此设置要求您至少具有1.13.