I am trying to edit Razor pages (.cshtml) in VS Code for a .NET Core project. When I open the file it chooses the ASP.NET Razor (aspnetcorerazor) language mode. It does syntax highlighting perfectly, but there's one important feature missing.
When I hover near the page number I cannot see the folding controls for code folding. So, there is no way to fold the code.
When I change my language mode back to HTML, I get the code folding back, but then I lose all the syntax highlighting of Razor syntax.
Has anybody experienced the same issue? Currently, as a workaround I have to switch back and forth between the HTML and ASP.NET Core Razor language modes for code folding.