Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Rainbow Brackets 2New to Visual Studio Code? Get it now.
Rainbow Brackets 2

Rainbow Brackets 2

Tejasvi S. Tomar

|
163,162 installs
| (7) | Free
Distinct colors for matching brackets.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rainbow Brackets 2

VS Marketplace badge

Multi-color highlight of matching brackets.

This fork is the continuation of original Rainbow Brackets.

Features

demo

  • Round, square and squiggly brackets each have their own colors, one for each level of nesting.
  • Closing brackets without an opening bracket are red.
  • Brackets in strings, comments and regular expressions are left alone. They are found with the syntax highlighting grammar of the language, the same way VS Code's own bracket pair colorization finds them, so this works in every language that VS Code highlights.
  • Large files are scanned in the background, and only the brackets around the visible lines are decorated.

VS Code's own bracket pair colorization (editor.bracketPairColorization.enabled) can stay on. The colors of this extension are drawn over it.

Extension Settings

Settings under Rainbow Brackets 2 section can be used to:

  • Provide custom colors, as many as you like for each kind of bracket.
  • Exclude specific filetypes.
  • Color brackets in strings and comments too (rainbowBrackets.ignoreStringsAndComments).
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft