Reputation:
When I use tab space in VSCode it remains a vertical line for each tab as in picture below. How can I remove them?
Upvotes: 5
Views: 8102
Reputation: 29
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
Upvotes: 1
Reputation: 3000
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:
Upvotes: 8
Reputation: 76
VS Code has options to hide/show indent guides. Steps to configure are as below.
You can also choose to hide or show Editor › Guides: Highlight Active Indentation
Upvotes: 3