-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit the new bracket pair colorization to certain types #132336
Comments
@runxel You say you don't want "[ ]" to be colored because those types of brackets are never nested. There is another way to achieve what you want. See #131027 and my comments there. If that feature is implemented and you set the first bracket pair color to black (white if you use a dark theme) then all top-level brackets of each type would not be colored. Only nested brackets of the same type would be colored. The result is a little different because it applies to all bracket types. You may like that less, or you may like that more. It's just a different way to achieve what you want. |
@oaahmad To have only the nested brackets of the same type to have color would be nice choice, too! |
/assign @hediet |
Personally, I like to have brackets colored even though they are not nested.
|
Each language can configure supported bracket pairs. |
@hediet |
VSCode v1.60.0 has brought native support for bracket colorization. When enabled nested bracket pairs will be highlighted differently. Per this comment it has to be set up as language rule (microsoft/vscode#132336 (comment)).
I think you might be looking for #131412. |
The native bracket pair color highlighting is great, but I miss an option to exclude certain types of brackets.
I'm coding in a (somewhat niche) language that uses square brackets
[]
for arrays. Arrays in this language can't be nested, so there is just no need to have them colorized. In fact, it's rather adding visual clutter.So maybe there could be a new setting where you can toggle for each bracket type if it should be highlighted or not.
The text was updated successfully, but these errors were encountered: