Feature request: Option to colorize only active bracket pairs
#136 646 ouverte le 8 nov. 2021
Métriques du dépôt
- Stars
- (74 848 stars)
- Métriques de merge PR
- (Merge moyen 14h 20m) (999 PRs mergées en 30 j)
Description
Maybe this isn't typical use, but for a long time I've been using the bracket pair colorizer extension to color the brackets and show guides only for the current scope, and always in the same color. It looks like this:

Now that VS Code has been implementing this functionality directly, I can get halfway there by setting editor.guides.bracketPairs and editor.guides.bracketPairsHorizontal to "active", and using a single color for editorBracketPairGuide.activeBackground{1-6}:

However I can't find a way to color the brackets themselves without turning on bracket pair colorization for all brackets. If there was an "active" setting for bracket pair colorization like there is for the guides, I would be able to achieve what I want.
Alternatively, a color override akin to editorBracketMatch.background and editorBracketMatch.border for the text color could be added (#85775). However the mechanism that these settings represent seems to operate a little differently, because unlike the guides it considers "inline" brackets, and is affected by the editor.matchBrackets setting - it's kind of tangential to the other stuff currently (and I think I like it better that way).