How to change specific vscode theme parameters?

How to change specific vscode theme parameters? In my case I want to change "wordHighlight" and "wordHighlightStrong". I try:

"editor.tokenColorCustomizations": {
    "textMateRules": [
        {

        }
    ]
},

But can't understand what to write.

Upvotes: 1

Views: 876

Answers (1)

wasmup
wasmup

Reputation: 16233

try this:

"editor.tokenColorCustomizations": {
    "textMateRules": [{
        "scope": "var.identifier",
        "foreground": "#00FF00",
        "fontStyle": "bold"
    }]
}

hint: press F1 then enter Developer: Inspect TM Scopes (this works in VSCode Version 1.17.0).
also there is an issue

see:
TextMate Grammars
Themes, Snippets and Colorizers
TextMate Scope Selectors
TextMate Language Grammars

I hope this helps.

Upvotes: 1

Related Questions