Code editor Zed adds long-awaited rainbow brackets for improved nested code readability
Kirill Bulatov, one of the software engineers behind Zed, has announced the arrival of rainbow brackets, a feature that users have been requesting for over three years. It is now available in the stable release of the code editor, targeting users who work with complex or deeply-nested functions.
With this feature, each level of nested brackets receives a unique color, making it easier for developers to follow code blocks and match brackets at a glance. While this enhancement improves code readability for everyone, it is especially relevant for anyone navigating challenging codebases or maintaining large files.
Rainbow brackets are turned off by default. To use it, users need to search for “Colorize Brackets” in the application's settings and activate the option. This setting can be customized further: users may enable rainbow brackets for specific programming languages, use theme-aware bracket colors for better visual integration, or even exclude certain bracket types as needed.



Comments
VisualCode has a lengthy article on how it is difficult to implement such a feature with good performances when it was added 4 years ago: https://code.visualstudio.com/blogs/2021/09/29/bracket-pair-colorization