I'm trying to personalize the color theme on Visual Studio Code because I'm used to a certain theme on a another software. So I want to change the color of the mathematical operators ( , -, =, ...).
I tried scrolling through the different options under workbench.colorCustomizations
and editor.tokenColorCustomizations
but I can't seem to find anything that changes the color of the operators.
Does anyone know which keyword covers the operators?
CodePudding user response:
The first things you need to do is to find the token name/scopes of the operatos. You can do this by open vscode command palette Ctrl
Shift
P
then search for Developer: Inspect Editor Tokens and Scopes
, check the scopes by moving you caret.
After finding the scope name, open your vscode JSON settings, and create new textMateRules, it's looks like this:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": ["bold.inline.source.post"],
"settings": {
"foreground": "#D55"
}
}
]
}
Reference: vscode syntax highlighting