【发布时间】:2021-12-07 03:00:14
【问题描述】:
VS Code 允许用户在settings.json 中customize syntax highlighting colors for specific syntax。最灵活的方法是使用"textMateRules" 属性,
其格式如下:
"editor.tokenColorCustomizations": {
"textMateRules": [{
"scope": ["keyword.other", "keyword.control"],
"settings": {
"foreground": "#FF0000",
"fontStyle": "bold"
}
}]
}
上述 sn-p 的问题在于它将所选样式应用于 keyword.other 或 keyword.control 范围。 是否可以设计一个需要keyword.other 和keyword.control 范围的textMateRules 配置?
【问题讨论】:
标签: visual-studio-code vscode-settings