Microsoft/vscode

Feature request: Option to colorize only active bracket pairs

Open

#136,646 创建于 2021年11月8日

在 GitHub 查看
 (0 评论) (15 反应) (1 负责人)TypeScript (74,848 star) (10,221 fork)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).

贡献者指南