skip to Main Content

I’m using native VSCode Bracket Pair Colorization and just realized it doesn’t work with HTML, and specially CSS (which I’m more interested in). I tried looking in Settings and searching Google for some help, but didn’t find any help. Does any of you guys know some .json setting, so I can add HTML/CSS to this feature?

3

Answers


  1. Bracket pair colorization is by default supported in CSS/SCSS. As for HTML, it does not have any brackets, but it still highlights the ending tag if you click on the start tag.

    enter image description here

    Login or Signup to reply.
  2. As for HTML, it does not have any brackets

    • Well, it does if you are using Angular’s interpolation.

    Til now, 2022 Nov. 3, vscode’s implementation still doesn’t work with html. So i disabled the native and reinstalled Bracket Pair Colorizer 2. Now it’s working.

    Though already deprecated, but everything works. I will not settle with the latest and greatest but lacks in functionality.

    Login or Signup to reply.
  3. I found this on Github and it’s work. You can try it

    "editor.language.colorizedBracketPairs": [
        ["[", "]"],
        ["(", ")"],
        ["{", "}"],
        ["<", "</"],
        ["<", "/>"]
    ],
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search