在 vs 代码编辑器中隐藏代码块行

Hiding code block lines in vs code editor

我的所有代码中都有这些奇怪的行,它们似乎突出显示了代码块。我如何关闭它们?我的版本是 1.30

Link: https://ibb.co/z5Tt6t4

所以左边的白线。它们叫什么,我该如何关闭它们?

您可以通过将这些设置添加到 vscode 的 settings.json 文件来隐藏缩进参考线:

"editor.guides.indentation": false,
"editor.guides.highlightActiveIndentation":false,

"editor.guides.indentation": false, 将关闭所有编辑器指南,包括但不考虑 "editor.guides.highlightActiveIndentation" 设置。

Prior to 1.61.0,这些设置有不同的键:

"editor.renderIndentGuides": false,
"editor.highlightActiveIndentGuide": false,

您还可以更改它们的颜色(包括透明 #0000):

"workbench.colorCustomizations": {
    "editorIndentGuide.background": "#ff0000",
    "editorIndentGuide.activeBackground": "#ff0000",
}