4

In VS Code, how can I set the color for the curly bracket characters {and } in .ts files?

In my settings.json, I currently have this as a starting point:

"editor.tokenColorCustomizations": {
        "textMateRules": [{
            "scope": "entity.name.class, entity.name.type", 
            "settings": {
                "foreground": "#cc0000",
                "fontStyle": "italic",
             }
        }],
}
Hoff
  • 38,776
  • 17
  • 74
  • 99

1 Answers1

5

This should be what you're looking for:

"editor.tokenColorCustomizations": {
  "textMateRules": [
    {
      "scope": [
        "punctuation.definition.block.ts"
      ],
      "settings": {
        "foreground": "#ff0000"
      }
    }
  ]
},
jabacchetta
  • 45,013
  • 9
  • 63
  • 75
  • 3
    Look at a few answers on SO about using the command "Inspect TM Scopes" to find out how this answer arrived at the "punctuation.definition.block.ts" scope. Such as https://stackoverflow.com/questions/42116486/where-can-i-find-a-list-of-all-possible-keys-for-tm-themes-for-syntax-highlighti/42117021#42117021 – Mark Feb 10 '19 at 02:30