在 VS Code 编辑器中隐藏代码块行

4

我在我的所有代码上看到了这些奇怪的线条,它们似乎突出了代码块。我该如何关闭它们?我的版本是1.30。

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

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

1个回答

10

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

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

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

在1.61.0之前, 这些设置有不同的键:

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

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

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接