Visual Studio 2022 .razor code block is flickering

Viewed 431

I am using Visual Studio 2022 Enterprise. While working with .razor files I have a strange flickering.

Since a while my syntax highlighting is broken. As you can see in the image below it is a constant flickering of the highlighting. Does anyone knows how to get rid of the flickering in a .razor file in C#. This behavior is occurring in some of the file, not in all.

I have already rebuild and clean up the project. Closing VS or the tab does not work either.

enter image description here

Ignore the code content, that is still in development :)

2 Answers

While update 17.2 makes it a little better the workaround for now is to maximize all collapsed code blocks.

Related