简体   繁体   English

Vscode 缩进指南:如何减少(而不是隐藏)太多/激进的垂直线?

[英]Vscode indent guide: how can I lessen (not hide) vertical lines that is too many / aggresive?

在此处输入图像描述

I am new to vscode, how can I get only one vertical line for each indented block, or... just mask it less ugly... like this...我是vscode的新手,我怎样才能为每个缩进块只得到一条垂直线,或者......只是掩盖它不那么难看......像这样......

在此处输入图像描述

I know this is not a perfect solution, but我知道这不是一个完美的解决方案,但是

在此处输入图像描述

According to vscode doc of ThemeColor , there is根据ThemeColor 的 vscode 文档,有

  • editorIndentGuide.background : Color of the editor indentation guides. editorIndentGuide.background :编辑器缩进指南的颜色。
  • editorIndentGuide.activeBackground : Color of the active editor indentation guide. editorIndentGuide.activeBackground :活动编辑器缩进指南的颜色。

So I set editorIndentGuide.background to the value of editor.background所以我将editorIndentGuide.background设置为editor.background的值

{
  ...other thing...
  "workbench.colorCustomizations": {
    "editorIndentGuide.background": "#F3F3F3",
  }
}

So only the non-active indentguides "diappear".所以只有非活动的缩进导向“消失”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM