When I use tab space in VSCode it remains a vertical line for each tab as in picture below. How can I remove them?
3 Answers
The Editor > Guides: Indentation setting controls whether or not those lines are rendered. Just uncheck that box and you should stop seeing them.
It's the bottom box in this image
Update based on comments: I don't think the editor can selectively render some indent guides while hiding the rest, all 'TAB SPACES' before text count as indentation to it. If you're only doing this with comments for some visual reason, you can simply start the comment early and put the spaces later like so:
3 Comments
VS Code has options to hide/show indent guides. Steps to configure are as below.
- Open VS Code Settings [ Cmd + Shift + P / Ctrl + Shift + P ]
- Search for 'settings' and select Preferences: Open Workspace Settings
- Now in settings, search for 'editor>guides'
- Uncheck Editor > Guides: Indentation to remove guides.

You can also choose to hide or show Editor › Guides: Highlight Active Indentation
Faced the same problem, instead of trying to disable the lines, I decided to change the colors to transparent. Heres my settings:
"workbench.colorCustomizations": { // BRACKET PAIR "editorIndentGuide.activeBackground1": "#ffffff22", "editorIndentGuide.background1": "#00000001", // LINE NUMBERS "editorLineNumber.activeForeground": "#ffffff55", "editorLineNumber.foreground": "#ffffff11", // GIT LINES "editorGutter.addedBackground": "#00000000", "editorGutter.deletedBackground": "#00000000", "editorGutter.modifiedBackground": "#00000000" }, I just play with the colors until I catch the one I like



