Comments (3)
Alright, I finally created a simple post for this, feel free to read it here
from better-cpp-syntax.
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.
from better-cpp-syntax.
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
from better-cpp-syntax.
Related Issues (20)
- Packs in template template parameter are not highlighted
- field index followed by arrow operator HOT 1
- Coloring gets wrong after finding a single quote character in a raw C++ string HOT 6
- Syntax Highlighter Crashing HOT 4
- Syntax highlighting broken after member function with requires clause with less comparison
- colorization of tab character "\t" in string does not work properly HOT 2
- 改扩展似乎与clang服务器冲突, 会造成clang语言服务器多次崩溃
- Add semantic colorization for c++23 #elifdef and #elifndef HOT 1
- [Suggestion] Highlight `{}` in strings
- Wrong Token Scope for Typename
- new version is not publish to vscode market? HOT 1
- ASM will not end after '#'
- Syntax highlighting is incorrect for valid C header file
- Highlighting Incorrect After Shimming Ostream Operator
- Another conversion bug `$reference(directive)` HOT 1
- Token is not highlighted in a template
- The keyword constexpr is not highlighted HOT 1
- C++ syntax highlighting falls apart after specific struct syntax HOT 1
- include for `preprocessor_number_literal` has no matching pattern HOT 2
- `meta.parameter` scope leaks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from better-cpp-syntax.