visual-studio-2022syntax-highlighting

Visual Studio 2022 doesn't recognise and color syntax


Recently I've got new corporate laptop and since then my Visual Studio Professional 2022 fails at recognising and coloring some code syntax. For example classes, methods etc. in text editor are simply black:

Class color fail

enter image description here

Method call color fail

Here are some more details and my findings so far:

Would appreciate any help. Currently the issue is so annoying and disturbing that I had to switch to JetBrains Rider. Ran out of ideas, my last overkill try would be to format drive and resetup entire OS.


Solution

  • It turned out that it is actual bug in Visual Studio. MS replied to my ticket. Installed new preview version (17.11) and it works now. Thanks everybody for help. Here is explenation what did they change in roslyn:

    https://github.com/dotnet/roslyn/pull/72878