Closed JayXon closed 5 years ago
So I believe this is actually a setting with your theme.
BUT, the good news is VS Code lets you customize absolutely everything.
If you add the following code to your settings.json, it should make them the original color again.
And in fact, if you want, you can set them to whatever color you would like so it can be different than int. (Just change the "foreground": "#bc7ed7",
part below to change the color)
"editor.tokenColorCustomizations" :
{
"textMateRules": [
{
"name": "symbol color",
"scope": [
"source.cpp keyword.operator" // name of thing you want to color
],
"settings": {
"foreground": "#bc7ed7", // color you want it to be
"fontStyle": "" // bold/underline/italics or none
}
}
]
},
The only thing this extension does is make sure that the language gets labeled correctly (e.g. strings are marked as 'strings' and operators are marked as 'keyword.operator'). It's then the theme's job to take those names and give them color.
If you think your theme should color it that way by default, post an issue on their repo and give them that code^ and they should know exactly what to change.
In my own settings I actually make the assignment operators different from the other operators, which is pretty handy when they accidentally end up inside of if statements.
I'm going to keep this issue open for now until I can create a guide for customizing theme colors exactly how you want, because I believe this is going to be a common issue.
Not only can you change the colors but you can also change things like bold underline and cursive-ness of things. Read this if you want a little more info https://medium.com/@JeffHykin/how-to-get-cursive-fonts-in-vs-code-2018-without-operator-mono-220544fed93a
Alright, I finally created a simple post for this, feel free to read it here
This extension
VSCode default
This is a minor issue, but
+
,*
and&
all lost its color when using this extension, ideally they should be highlighted with a different color thanint
.