Code editor Zed adds long-awaited rainbow brackets for improved nested code readability

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.

by Paul

nblackburnVoidyWay
nblackburn found this interesting
Zed Editor iconZed Editor
  101
  • ...

Zed Editor is a high-performance code editor known for its real-time collaborative capabilities, allowing multiple users to work simultaneously. It features a built-in Vim mode, language-aware syntax trees, and an integrated terminal. With a 4.8 rating, Zed Editor offers syntax highlighting, dark mode, and multi-buffer support, catering to technical users seeking efficiency and collaboration.

Comments

UserPower
0

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

Gu