Razor Pages syntax highlighting keeps breaking in Visual Studio (even after deleting .vs folder)
I'm having a recurring issue with Razor Pages in Visual Studio: the syntax highlighting and colorization randomly stop working. The editor falls back to plain text, with no colors, no Razor directives highlighting, and no IntelliSense.
This happens very frequently, and even if I delete the .vs folder, restart Visual Studio, clear caches, or reload the project, the problem always comes back.