I am trying to override default syntax coloring in VS Code. Particularly instead of #a31515
(redish) color in default theme "Light (Visual Studio)" I want to see #036A07
(green) color.
For that, in editor.tokenColorCustomizations
in my user settings settings.json
file I changed this default values:
"editor.tokenColorCustomizations": null
to:
"editor.tokenColorCustomizations": {
"markup.deleted": "#036A07",
"meta.preprocessor.string": "#036A07",
"string": "#036A07",
"entity.name.operator.custom-literal.string": "#036A07",
"meta.embedded.assembly": "#036A07"
}
I saved settings.json
file and restarted VS code, but I do not see any changes in code highlighting (same redish color as was before):
Question: What is the problem with my code and what is the correct code for doing it?
From @tHeSiD answer below I created this code and it worked:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"name": "Single Quotes",
"scope": "string.quoted.single.python",
"settings": {
"fontStyle": "",
"foreground": "#036A07"
}
}]
}
For setting only for particular theme:
"editor.tokenColorCustomizations": {
"[Visual Studio Light]": {
"textMateRules": [
{
"name": "Single Quotes",
"scope": "string.quoted.single.python",
"settings": {
"fontStyle": "",
"foreground": "#036A07"
}
}]
}
}
Also it worked without setting editor.semanticHighlighting.enabled
to false