需要更改括号颜色 VS 代码。根据嵌套程度,括号具有不同的颜色
更好地在视频中展示它
https://streamable.com/j63xct
我尝试通过“editorBracketHighlight.foreground1”更改括号的颜色。但有些东西覆盖了我的设置。这是settings.json
在我的设置中,所有括号都是红色的,当我在 VS code 中打开文件时,括号会变红 1 秒,然后它们再次成为主题中的默认值。
编辑器 › 括号对着色:已启用
{
"editor.minimap.enabled": false,
"editor.unicodeHighlight.allowedLocales": {
"ru": true
},
"php.validate.executablePath": "",
"security.workspace.trust.untrustedFiles": "open",
"RainbowBrackets.depreciation-notice": false,
"liveServer.settings.donotShowInfoMsg": true,
"workbench.editor.untitled.hint": "hidden",
"editor.unicodeHighlight.nonBasicASCII": false,
"workbench.startupEditor": "none",
"explorer.confirmDelete": false,
"update.showReleaseNotes": false,
"workbench.colorTheme": "Default Light Modern",
"workbench.colorCustomizations": {
"editorBracketHighlight.foreground1": "#f60505fa",
"editorBracketHighlight.foreground2": "#f81f1ffa",
"editorBracketHighlight.foreground3": "#ca0d0dfa",
"editorBracketHighlight.foreground4": "#f33737fa",
"editorBracketHighlight.foreground5": "#b70707fa",
"editorBracketHighlight.foreground6": "#fe3030fa",
"editorBracketHighlight.unexpectedBracket.foreground": "#db6165"
}
}