Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97420

Change color of specific language words in visual studio code with textMateRules

$
0
0

I want to change the color of some of the VHDL operators colors in VS code, is there a simple form of doing that in the settings.json?

{
    "window.zoomLevel": 0,
    "workbench.colorTheme": "Visual Studio Dark",
    "editor.tokenColorCustomizations": {
        "[Visual Studio Dark]": {
            "variables": "#ffae00",
            "textMateRules": [
                {
                    "scope": "keyword.operator",
                    "settings": {
                        "foreground": "#FF0000"
                    }
                },
                {
                    "scope": [
                        "keyword.reserved.vhdl",

                    ],                    
                    "settings": {
                        "foreground": "#1eff00"
                    }
                }
            ]
        }
    }
}

That generates the next ouput:

vhdl formatted

And for example I would like to be able to separate the vhdl struct reserved words like (end, entity, architecture, process, if, then, else) from logic operators (not), in green. Or the assignations (<=) from the (;) or the ({})

If tried many things but, I'm not able to insert as condition a pattern. And I don't have time to go with the example : https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide, maybe in the future

Thanks


Viewing all articles
Browse latest Browse all 97420

Trending Articles