使代码折叠图标始终显示在 Visual Studio Code 中 [英] Make the code folding icons always show in Visual Studio Code
问题描述
喜欢使用 Visual Studio Code,但令人讨厌的是,我总是认为我的代码没有正确缩进,因为实际编辑器的左边缘与数字相差甚远.
Loving using Visual Studio Code but one peeve is that I always think my code isn't indented properly since the left edge of the actual editor is kind of far from the numbers.
有没有办法默认显示代码折叠 +/- 图标?只有当您将鼠标悬停在排水沟上时,它才会显示它们.
Is there any way to show the code folding +/- icons by default? It only shows them if you hover over the gutter.
顺便说一句,是否有办法更改装订线的颜色,使其看起来与编辑器不同?
As an aside, if there is a way to change the color of the gutter so it looks distinct from the editor?
推荐答案
要更改装订线的颜色,您可以在用户设置中添加以下内容:
To change the color of the gutter, you can add following to the user settings:
"workbench.colorCustomizations": {
"editorGutter.background": "#abcdef"
}
并显示折叠图标:
"editor.showFoldingControls": "always"
请注意,此设置要求您至少拥有 1.13.
Note that this setting requires you to have at least 1.13.
这篇关于使代码折叠图标始终显示在 Visual Studio Code 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!