3

I have DARK mode enabled on my visual studio IDE and on windows 10 configurations.

To reproduce the "bug" I :

  • open multiple instances (4) of visual studio as admin. (If prompted to ask permission, I click yes)
  • go on each instances' start page and under Recent solution/project I select projects as fast as I can
  • wait for each project/solution to load up on each instances
  • see strange highlights/color, in the IDE, on the code I wrote on each project/solution.

It's as if the IDE is displaying colors of the LIGHT mode while still being on DARK mode.

Example of "normal" DARK mode IDE: enter image description here enter image description here

Example of "bugged" DARK mode/With LIGHT syntax highlights IDE: enter image description here enter image description here

QUESTION : Is there any way to fix this bug other than closing and reopening all the IDEs I opened too fast?

  • This may be not a bug. I have this issue all the time with VS19. Wait some time after Visual Studio loads the solution/project. Then it will automatically shows correct syntax highlighting. – Biswapriyo Mar 2 at 16:23
  • @Biswapriyo even after waiting for a couple of minutes, the syntax highlighting stays the same ): Maybe it's because I'm with vs2017 – LoukMouk Mar 2 at 16:29
  • Try to start VS in SafeMode. If this helps, then the problem is with some extension. In this post the problem was caused by VisualGDB. – harrymc Mar 5 at 13:56
  • @harrymc The "bug" is still happening in safe mode, but only half the time. EDIT: I retested without safe mode and it's the same – LoukMouk Mar 5 at 14:25
  • 1
    Try to find which extension causes it in half of the times. This might give some indication. – harrymc Mar 5 at 14:27
1
+50

There is not much that can be done when having a problem with Visual Studio. One can hope that the problem is with some extension that can be disabled as a fix. To test this, start Visual Studio in SafeMode:

devenv /SafeMode

If the problem has been solved, then the solution is simply to find the bad extension.

In the case that the problem is still there, then the only action possible is to send Microsoft a bug report. For this, see the Microsoft article How to report a problem with Visual Studio or Visual Studio Installer.

Then one needs to search for some workaround, because bugs in Visual Studio are not fixed that rapidly.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.