visual-studio-code - 在 vs 代码编辑器中隐藏代码块行

标签 visual-studio-code vscode-settings

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

链接: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",
}

关于visual-studio-code - 在 vs 代码编辑器中隐藏代码块行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54487764/

相关文章:

visual-studio-code - (为什么)我会在项目中同时使用 .editorconfig 文件和 VS 代码工作区设置?

javascript - VSCode 中的流类型检查性能

visual-studio-code - Visual Studio Code 中的多行正则表达式搜索

visual-studio-code - 如何在 VSCode 中为扩展设置键绑定(bind)?

typescript - TypeScript monorepos : development vs production 中对等包的类型定义

python - Azure 函数 - Python - Visual Studio Code

python - 当有大量终端输出(Ubuntu)时,为什么VSCode会卡住?

react-native - 找出 React Native 项目中未使用的导入

python-2.7 - python模块的vscode导入错误

visual-studio-code - 如何在 Visual Studio Code 中将默认浏览器设置为 chrome?