如何使用 TextMate 规则为某些字符着色,以便在 vs 代码中突出显示语法
How to color certain characters with TextMate rules, for syntax highlighting in vs code
在 VS Code 中,如何设置 .ts
文件中大括号字符 {
和 }
的颜色?
在我的 settings.json
中,我目前将此作为起点:
"editor.tokenColorCustomizations": {
"textMateRules": [{
"scope": "entity.name.class, entity.name.type",
"settings": {
"foreground": "#cc0000",
"fontStyle": "italic",
}
}],
}
这应该是您要查找的内容:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"punctuation.definition.block.ts"
],
"settings": {
"foreground": "#ff0000"
}
}
]
},
在 VS Code 中,如何设置 .ts
文件中大括号字符 {
和 }
的颜色?
在我的 settings.json
中,我目前将此作为起点:
"editor.tokenColorCustomizations": {
"textMateRules": [{
"scope": "entity.name.class, entity.name.type",
"settings": {
"foreground": "#cc0000",
"fontStyle": "italic",
}
}],
}
这应该是您要查找的内容:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"punctuation.definition.block.ts"
],
"settings": {
"foreground": "#ff0000"
}
}
]
},