您可以通过将以下设置添加到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",
}