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

riz*_*ied 3 visual-studio-code vscode-settings

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

链接:https : //ibb.co/z5Tt6t4

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

Mar*_*ark 8

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

"editor.renderIndentGuides": false,
"editor.highlightActiveIndentGuide": false,
Run Code Online (Sandbox Code Playgroud)

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

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

"workbench.colorCustomizations": {
    "editorIndentGuide.background": "#ff0000",
    "editorIndentGuide.activeBackground": "#ff0000",
}
Run Code Online (Sandbox Code Playgroud)