VSCode syntax highlighting : Dimming `end`s

Hello,
I just reinstalled Ubuntu, and along with it, VSCode. I also installed the Julia Extension. I have selected the Monokai Theme. I see that when I change the theme of VSCode, the julia syntax highlighting colors also change.

I used to like the atom highlighting a lot, especially things like dimming out end etc.
I was wondering how I can change the syntax highlighting colors without changing the theme in VS Code?
And more specifically how do I dim out the ends like Atom used to?
Thank you.

1 Like

You can’t. I’d recommend just installing the “One Dark Pro” syntax theme though if you like the Atom highlighting.

That’s not possible, afaict.

1 Like

You can override syntax highlighting colors of your theme. Here’s the relevant section of the online manual:

1 Like

So for e.g. One Dark Pro you’d add

    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": "keyword.control.end.julia",
                "settings": {
                    "foreground": "#834d94"
                }
            }
        ]
    },

to your settings.json.

1 Like

Hah, was just about to comment this :grin:
Additionally, to only recolor when a specified theme is active, wrap the textMateRules with the theme:

    "editor.tokenColorCustomizations": {
        "[One Dark Pro]": {
            "textMateRules": […]
        },
    },

The scope of other tokens than end can be found using the “Developer: Inspect Editor Tokens and Scopes” command.

1 Like