Skip to content

Why does syntax highlighting look different in C/C++ Dimmed Inactive Regions (#ifdef) #8135

Answered by Colengms
theFireProject asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @theFireProject . The differences you are seeing are likely due to semantic highlighting. That provides colorization based on semantic analysis (compilation) of the source code. Blocks of code that are inactive are not compiled, so not considered for semantic highlighting. You could disable semantic highlighting globally with editor.semanticHighlighting.enabled, or just for the C/C++ extension using "C_Cpp.enhancedColorization": "Disabled".

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@theFireProject
Comment options

@sean-mcmanus
Comment options

@Colengms
Comment options

@sean-mcmanus
Comment options

Answer selected by theFireProject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants