How can you change the block relation line colors in VS Code

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



How can you change the block relation line colors in VS Code



I am trying to see if you can update the colors for each block relation line. Similar to how Bracket Pair Colorizer works. Nothing is more annoying than tracking the same color line down. As you can see in the pic they are all light gray. I would like a couple of different colors... like grandparent = light green, parent light blue, child light red - repeat down. Is this possible?



enter image description here





What's wrong with the Bracket Pair Colorizer extension? It only highlights one line in color at a time?
– Alex Myers
14 hours ago






No, you can only separately color the active indent guide with "editorIndentGuide.activeBackground": "#fff8", "editorIndentGuide.background": "#fff0", Here I have all indent guides transparent except the active indentguide. You will have to use some extension otherwise.
– Mark
12 hours ago





@AlexMyers when you're coding HTML or tagbased the bracket pair doesn't apply... unless there is a setting somewhere.
– RooksStrife
16 mins ago





Oh I see. Despite the attached HTML image, I did not think to test it in HTML.
– Alex Myers
10 mins ago




1 Answer
1



The Bracket Pair Colorizer extension can be configured to work with HTML. Below is their sample configuration. Copy it into your settings.json and modify the colors as you wish.


"bracketPairColorizer.consecutivePairColors": [
["<", "</"],
["<", "/>"],
[
"Gold",
"Orchid",
"LightSkyBlue"
],
"Red"
],



Result:



enter image description here






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS