I use One Dark Pro in vs code. When I'm writing in a python file, everything has a distinct color, it's wonderful.
In a Go file, there are many similarities to the Python coloring (because of course I'm still using One Dark Pro, for example def and func are both purple) but much of the code is in plain white.
It seems to be variables, though packages and struct literals go white as well.
Is there a way to get the Python coloring in Go?
CodePudding user response:
Modify in the settings.json
file using:
// Just an example
"editor.tokenColorCustomizations": {
"[Abyss]": {
"textMateRules": [
{
"scope": "meta.function-call",
"settings": {
"foreground": "#ffffff"
}
},
{
"scope": "entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution",
"settings": {
"fontStyle": ""
}
},
]
}
},
Use Ctrl Space as you write and you'll get more configuration suggestions to use.