
The colors work equally well for both light and dark themes and can be customized in the Fonts and Colors options page. It has four unique colors that it will cycle through and repeat for as many levels deep as needed. We call it Rainbow Braces and the first iteration adds basic colorization to curly brackets, square brackets, and parentheses (see image above).įigure 1: Colorized bracket pairs in both light and dark theme We’re starting out with an extension to kick off the experiment. So, with increased interest and multiple viable solutions, what would the right implementation look like for Visual Studio users? Granted, they all colorize bracket pairs, but the way they do it differs and a lot of them provide additional features and options.Ī feature request on the Visual Studio Developer Community is also now gaining steam asking for colorized bracket pairs, so please vote and comment if you agree. What’s interesting about all these implementations is how they all do things a bit differently. For example, the Viasfora extension for Visual Studio has provided this feature for many years. Various IDE’s and editors offer this feature today – usually done through extensions.

By color-coding bracket pairs, we’re making this much easier. For people with color blindness or other optic maladies, the problem can be even worse.

When dealing with deeply nested brackets in Visual Studio, it can be hard to figure out which brackets match and which do not.
