英文:
VS Code - How to make brackets, parentheses, and square brackets bold
问题
我喜欢这个颜色主题,但我讨厌花括号、方括号和括号的颜色太淡。
花括号我设法加粗了。
"editor.tokenColorCustomizations":
{
"textMateRules":
[{
"scope": ["punctuation"],
"settings": {"fontStyle": "bold"}
}]
},
有些改善,但括号和方括号仍然很淡。我正在尝试其他设置,但找不到哪些设置影响括号和方括号。
欢迎任何帮助。
英文:
I love this color theme but I hate how much the curly brackets, square brackets, and parentheses are washed out.
The curly brackets I managed to leave bold.
"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.
</details>
# 答案1
**得分**: 1
我找到了解决方案!我打开了命令面板 `Ctrl+Shift+P`,运行了 **Developer: Inspect Editor Tokens and Scopes** 功能,然后点击显示了处理自定义该字符的范围的字符。
在发现范围之后,我只需编辑 `settings.json` 中的相应设置:
```json
"editor.tokenColorCustomizations":
{
"textMateRules":
[{
"scope": ["punctuation"],
"settings": {"fontStyle": "bold"}
}]
},
英文:
I found the solution! I opened the Command Palette Ctrl+Shift+P
and ran the Developer: Inspect Editor Tokens and Scopes function, and clicked on the characters that showed me the scope that takes care of customizing that character.
After discovering the scope, I simply edited the respective settings in settings.json
:
"editor.tokenColorCustomizations":
{
"textMateRules":
[{
"scope": ["punctuation"],
"settings": {"fontStyle": "bold"}
}]
},
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论