Visual Studio Code中的默认缩进行指南?

Cis*_*nas 49 visual-studio-code vscode-settings

Visual Studio Code中是否有内置的缩进指南

我的settings.json文件目前:

__PRE__

Dan*_*mms 129

我们刚刚在2016年6月发布(v1.3.0)中发布了这个版本.您可以通过在settings.json文件中添加以下内容来启用它:

"editor.renderIndentGuides": true
Run Code Online (Sandbox Code Playgroud)

对于任何更多可自定义的缩进指南,您将需要一个扩展名,如指南.


Gin*_*pin 12

2021 年 9 月(版本 1.61)发布以来,正确的设置现在是:

"editor.guides.indentation": true
Run Code Online (Sandbox Code Playgroud)

UI 中的 editor.guides.indentation 设置

其他答案中的旧设置已被弃用:

缩进参考线设置

和设置已被弃用editor.renderIndentGuideseditor.highlightActiveIndentGuide 取而代之的是editor.guides.indentationeditor.guides.highlightActiveIndentation