How to fix broken syntax highlight in Visual Studio 2022 UI (different colors)

111 views Asked by At

How to fix these annoying different color errors which came after some recent updates? I definitely remember that there were no such errors a couple of months ago.

Question is about color highlight, not the green curly underscore. For example keyword var has boldness and navy color in one string and no boldness and light blue color in other string. Light blue I use for identifiers but var is keyword.

enter image description here

Different color and boldness highlight errors:

  1. var keyword
  2. a local variable
  3. p parameter
  4. IA interface & M method

In VS2019 all is OK

enter image description here

0

There are 0 answers