skip to Main Content

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

2

Answers


  1. The same thing happened to me, but in my case, I was using React and my language mode wasn’t in Plain Text.

    enter image description here

    I started checking my extensions, and noticed that probably the problem was this typescript extension: JavaScript and TypeScript Nightly

    enter image description here

    I’ve disabled the extension and VSCode colors worked properly again.

    enter image description here

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search