VS Code - 如何将方括号、括号和方括号加粗

问题描述 投票:0回答:1

我喜欢这个颜色主题,但我讨厌大括号、方括号和圆括号被洗掉了。

我设法将大括号保留为粗体。

    "editor.tokenColorCustomizations":
    {
        "textMateRules":
        [{
            "scope": ["punctuation"],
            "settings": {"fontStyle": "bold"}
        }]
    },

It improved a little, but the parentheses and square brackets are still very faint. I'm testing other settings, but I can't find which ones affect the parentheses and square brackets.

Any help is welcome.
visual-studio-code editor
1个回答
1
投票

我找到了解决方案!我打开命令面板

Ctrl+Shift+P
并运行 开发人员:检查编辑器令牌和范围 功能,然后单击显示负责自定义该字符的范围的字符。

发现范围后,我简单地编辑了

settings.json
中的相应设置:

"editor.tokenColorCustomizations":
{
    "textMateRules":
    [{
        "scope": ["punctuation"],
        "settings": {"fontStyle": "bold"}
    }]
},
© www.soinside.com 2019 - 2024. All rights reserved.