How can I hide indent guides in Visual Studio Code?

前端 未结 5 1952
甜味超标
甜味超标 2021-01-03 21:01

How can I hide the following lines to get a cleaner code view?

Like this in the official documentation:

How can I do that or find settings in t

5条回答
  •  孤街浪徒
    2021-01-03 21:55

    Here's a way to hide the indent lines but keep the active line indicator.

    Add this to settings.json.

    "workbench.colorCustomizations": {
      "editorIndentGuide.background": "#00000000" // hide via 100% transparency.
    }
    

    Only the active indent block will be visible.

    To control the color of the active line, add...

    "editorIndentGuide.activeBackground": "#444444b9" // Grey with some transparency.
    

提交回复
热议问题