Microsoft/vscode

Feature request: Option to colorize only active bracket pairs

Open

#136,646 opened on 2021年11月8日

GitHub で見る
 (0 comments) (15 reactions) (1 assignee)TypeScript (74,848 stars) (10,221 forks)batch import
bracket-pair-colorizationfeature-requesthelp wanted

説明

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: image image

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}: image

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).

コントリビューターガイド