# VSCode syntax highlighting : Dimming \`end\`s

**URL:** <https://discourse.julialang.org/t/vscode-syntax-highlighting-dimming-end-s/63347>\
**Category:** VS Code\
**Tags:** syntax\
**Created:** [June 22, 2021, 5:13am UTC](https://discourse.julialang.org/t/vscode-syntax-highlighting-dimming-end-s/63347 "2021-06-22T05:13:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakeshvar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rakeshvar/32/3613_2.png) [@rakeshvar](https://discourse.julialang.org/u/rakeshvar)\
**Post date:** [June 22, 2021, 5:13am UTC](https://discourse.julialang.org/t/vscode-syntax-highlighting-dimming-end-s/63347/1 "2021-06-22T05:13:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [June 22, 2021, 8:54am UTC](https://discourse.julialang.org/t/vscode-syntax-highlighting-dimming-end-s/63347/2 "2021-06-22T08:54:27Z")

</div>

> [@rakeshvar](#):
>
> I was wondering how I can change the syntax highlighting colors without changing the theme in VS Code?

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

> [@rakeshvar](#):
>
> And more specifically how do I dim out the ends like Atom used to?

That’s not possible, afaict.

---

<div class="post-metadata">

**Author:** ![NiclasMattsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/niclasmattsson/32/21988_2.png) [@NiclasMattsson](https://discourse.julialang.org/u/NiclasMattsson)\
**Post date:** [June 22, 2021, 9:28am UTC](https://discourse.julialang.org/t/vscode-syntax-highlighting-dimming-end-s/63347/3 "2021-06-22T09:28:28Z")

</div>

> [@rakeshvar](#):
>
> I was wondering how I can change the syntax highlighting colors without changing the theme in VS Code?

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

> **[Visual Studio Code Themes](https://code.visualstudio.com/docs/getstarted/themes#_editor-syntax-highlighting)**
>
> Changing the color theme in Visual Studio Code. You can use color themes provided by VS Code, the community or create your own new themes.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [January 6, 2022, 6:52pm UTC](https://discourse.julialang.org/t/vscode-syntax-highlighting-dimming-end-s/63347/4 "2022-01-06T18:52:05Z")

</div>

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

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

```

to your settings.json.

---

<div class="post-metadata">

**Author:** ![tfiers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tfiers/32/32427_2.png) [@tfiers](https://discourse.julialang.org/u/tfiers)\
**Post date:** [January 6, 2022, 7:33pm UTC](https://discourse.julialang.org/t/vscode-syntax-highlighting-dimming-end-s/63347/5 "2022-01-06T19:33:17Z")

</div>

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

```julia
    "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.
