Colour each type differently in vscode?

Viewed 24

I discovered that we can edit the settings.json in vscode to customise the colours we use: https://code.visualstudio.com/docs/cpp/colorization-cpp

For example by adding in the "editor.tokenColorCustomizations" the following block

            "textMateRules": [
                {
                    "scope": "entity.name.type",
                    "settings": {
                        "foreground": "#7955c2",
                        "fontStyle": "italic bold underline"
                    }
                }
            ]

All the name types will be light purple (std::vector, double etc)

Is it possible to colour specific types differently? For example, I have a user-defined object called "network" and it would help me a lot to spot it accross the code if it was in a specific colour of my choice.

It seems possible but reading the documentation I really don't understand how to make it happen...

0 Answers
Related