News

Visual Studio Extension Guru Intros Rainbow Braces to Make Sense of Code

Visual Studio extension expert Mads Kristensen's latest creation is Rainbow Braces, used to colorize brace pairs in order to better understand nested code.

A principal program manager on Microsoft's Visual Studio dev team, Kristensen is known for his many extensions -- nearly 200 -- that add functionality to the company's flagship IDE.

Last week, he took to Twitter to announce Rainbow Braces, which was received with much developer enthusiasm because it "Colorizes matching brace pairs to make it easy to identify them and their scope. Works for curly brackets, parentheses, and square brackets."

Rainbow Braces
[Click on image for larger view.] Rainbow Braces (source: Kristensen/Twitter).

The new offering was inspired by a Jan. 6 feature request on the Developer Community site that read:

Bracket pair colorization is one of my favorite features in VS Code and now it's supported natively: https://code.visualstudio.com/blogs/2021/09/29/bracket-pair-colorization

I regularly use both VS Code and VS 2019/2022 and I would love to have this feature available in Visual Studio. Can we make that happen? Pretty please?

Apparently asking "Pretty Please?" did the trick of persuading Kristensen to author the Rainbow Braces extension last week. Many developers lauded the new tool, with one asking if it was possible to provide toggle on/off functionality, which Kristensen added along with other requested functionality in a quick update.

Kristensen said his take on a simple brace colorizer was inspired by the free Viasfora extension from Tomas Restrepo (374,218 installs), which lists "Rainbow Braces" among several other capabilities. When asked why developers shouldn't just use that tool, Kristensen replied that numerous people over the years have expressed a desire for a smaller extension that does nothing but rainbow bracing.

A commenter also found an advantage over Viasfora: "I just installed it [Kristensen's Rainbow Braces], thank you! I didn't like the way Viasfora changed the colours of other text without the ability to disable it."

As of this writing, Kristensen's announcement tweet has garnered 348 likes, 21 comments and 47 retweets, while the tool in the VS Marketplace has been installed 717 times since its Aug. 24 debut, earning a near-perfect 4.9 rating from 11 developers who reviewed and rated it. "Love it. As someone with partial color blindness and various other optical maladies, this helps a lot. Especially with long JSON declarations in appsettings.json," said one review.

Kristensen encouraged developers to vote for the original Developer Community request, which could increase the chances of Rainbow Braces becoming a native, baked-in feature.

The project is hosted on GitHub here.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Using Local AI to Cut Copilot Usage-Based Billing Shock

    After being gobsmacked by the new billing plan using almost all my monthly credits in one or two days, I tried pushing some Copilot-style coding work onto local models in VS Code. What I found was less "free AI" and more "pick your pain": cloud charges on one side, heavy local resource use and long waits on the other.

  • .NET 11 Preview 5 Focuses on Performance, Productivity and Safer Code

    .NET 11 Preview 5 focuses on under-the-hood runtime performance gains, streamlined APIs and language features that reduce boilerplate, plus built‑in security checks and incremental ASP.NET Core and EF Core improvements aimed at everyday developer productivity.

  • VS Code 1.124 Focuses on Agent Autonomy and Parallel Sessions

    Microsoft's June 2026 VS Code update turns on Autopilot by default and adds background sending for agent sessions.

  • Developing Agentic Systems in .NET: From Concept to Code

    ZioNet founder Alon Fliess previews his Visual Studio Live! San Diego session on building true agentic systems in .NET -- covering the cognitive loop, MCP tool integration, multi-agent orchestration and enterprise hosting and governance with the Microsoft Agent Framework.

Subscribe on YouTube