Home > database >  VS Code annoying vertical lines
VS Code annoying vertical lines

Time:04-10

what cause these vertical lines ?

no matter what type of file edited (.c, .s) sometime these lines disapearing but as restarting VS code come back.

all indent visuality are disabled code section disabled.. almost everything..

latest VS code version (1.66.1)

The lines

CodePudding user response:

Below, there are 6 settings that have to do with 2 features that sort of overlap each other. VS Code originally only supported standard indent guide highlighting, then they added a feature called colorized bracket pairs. VS Code releases monthly updates 11x times a year. The month, after bracketColorizationPairs was initially released, VS Code added more to bracketPariColorization, which included vertical and horizontal lines. Those lines are more configurable than indent guides, and can render in hard to get situations indent-guides was not able to. Also, they render horizontal, under the line of code that starts a block.

When both indent guides and bracketPairColorization lines are configured to both render, the bracketPairColorization gets priority over the older indent-guides feature.

To avoid all the confusion, add the settings below to your settings.json file, the completely restart your editor. It should solve the problem. Let me know the result.

{
    "editor.guides.highlightActiveIndentation": false,
    "editor.guides.indentation": false,
    "editor.guides.bracketPairsHorizontal": "false",
    "editor.guides.bracketPairs": "false",
    "editor.guides.highlightActiveBracketPair": false,
    "editor.bracketPairColorization.independentColorPoolPerBracketType": false
}

CodePudding user response:

Go to the menu Code->Preference->Settings and search for "renderIndentGuides". The complete setting should appear as:

"editor.renderIndentGuides": true,

Change it to false.

UPDATE:

Keys had changed since v1.61 - on later version set the following instead:

"editor.guides.indentation": false
  • Related