Atom One Dark主题下,如何修改VS Code活动括号水平下划线颜色?
修改VS Code活动括号水平下划线颜色(Atom One Dark主题)
你之前尝试的editorBracketMatch.border和editorBracketMatch.background是用于光标定位到单个括号时的高亮样式,并非活动括号对的水平下划线。要修改你图中所示的水平下划线颜色,需要使用editorBracketPairGuide.activeHorizontal这个颜色配置项。
直接在你的settings.json的[Atom One Dark]配置块中添加以下内容即可:
"editorBracketPairGuide.activeHorizontal": "#aac524"
更新后的完整配置示例如下:
"workbench.colorCustomizations": { "[Atom One Dark]": { "editorIndentGuide.activeBackground1": "#aac524", "editorIndentGuide.activeBackground2": "#793415", "editorIndentGuide.activeBackground3": "#FF75B5", "editorIndentGuide.activeBackground4": "#45A9F9", "editorIndentGuide.activeBackground5": "#B084EB", "editorIndentGuide.activeBackground6": "#E6E6E6", "editorBracketPairGuide.background1": "#aac524", "editorBracketPairGuide.background2": "#FF75B5", "editorBracketPairGuide.background3": "#45A9F9", "editorBracketPairGuide.background4": "#B084EB", "editorBracketPairGuide.background5": "#E6E6E6", "editorBracketPairGuide.background6": "#19f9d8", "editorBracketPairGuide.activeBackground1": "#FFB86C", "editorBracketPairGuide.activeBackground2": "#d4151580", "editorBracketPairGuide.activeBackground3": "#45A9F9", "editorBracketPairGuide.activeBackground4": "#B084EB", "editorBracketPairGuide.activeBackground5": "#E6E6E6", "editorBracketPairGuide.activeBackground6": "#19f9d8", "editorBracketHighlight.foreground1": "#ff0000", "editorBracketHighlight.foreground2": "#ff0000", "editorBracketHighlight.foreground3": "#ff0000", "editorBracketHighlight.foreground4": "#ff0000", "editorBracketHighlight.foreground5": "#ff0000", "editorBracketHighlight.foreground6": "#ff0000", "editorBracketPairGuide.activeHorizontal": "#aac524" } }
注意:这个配置项需要VS Code版本在1.60及以上才能支持,确保你的编辑器版本符合要求。保存配置后,活动括号对的水平下划线就会变成你设置的颜色了。
内容的提问来源于stack exchange,提问作者Sorina Dinescu
相关产品推荐
相关产品推荐

