I’m a student and using VS Code to learn. When I opened a new file today, all the coloration from the code was gone. I’m using Dark+ theme and have the C++ intellisense extension active. I’ve checked color themes, uninstalled/reinstalled, restarting, disabling and re-enabling the extensions.
Included is a screenshot
[1]: https://i.stack.imgur.com/KmrKr.png
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
2
Answers
The same thing happened to me, but in my case, I was using React and my language mode wasn’t in Plain Text.
I started checking my extensions, and noticed that probably the problem was this typescript extension: JavaScript and TypeScript Nightly
I’ve disabled the extension and VSCode colors worked properly again.
Your file extension is ".ccp" instead of ".cpp" so vscode recognized it as plain text.
Change the file extension to ".cpp" may solve the problem.