skip to Main Content

I have a problem when I copy code around in my solution in Microsoft Visual Studio (newest version). The pasted code doesn’t have color highlighting; it’s just white.

Screenshot

As seen in the picture, the "string" in "std::string" should be green, and "Test" should be blue, but both are white.

However, as soon as I move my mouse over the line and then press Ctrl, the line gets updated and has the correct colors afterward.

Updated Screenshot

Does anyone have an idea of what could be causing this issue?

2

Answers


  1. I reproduced your problem.

    enter image description here

    Since it is related to product problem, please report to the Developer Community and post link here so that we can vote the thread.

    Login or Signup to reply.
  2. Same thing happens for me in VS 2022.

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