Open rchoudhary opened 4 years ago
I should add that in my settings I have both
"C_Cpp.enhancedColorization": "Enabled",
"editor.semanticTokenColorCustomizations": {
"enabled": true
},
I also have both the C/C++ extension by Microsoft as well as the Better C++ Syntax extension by Jeff Hykin installed and enabled.
Here is a snippet of C++ code colored with OneHalf Light in VS Code:
ISSUE 1: By default, OneHalf Light colors class names, but not struct names. Both are colored perfectly fine in Sublime Text 3 however:
Note that the Sublime Text theme file uses
support.class, entity.name.class, entity.name.type.class
in its definitions. In VS Code however, none of these work for structs, you need to useentity.name.type.struct
; Note thatentity.name.struct
doesn't work either.Anyways I added the following to my VS Code settings:
This is what it now looks like in VS Code:
ISSUE 2: The types of both
b
andc
remain uncolored.Here is how the code looks with the default VS Code Light+ syntax coloring:
The semantic coloring seems to work in that case.