Razor support

Visual Studio for Mac now officially supports Razor editing, including IntelliSense and syntax highlighting in .cshtml files.

razor editing in visual studio for mac

Getting Started with Razor in Visual Studio for Mac

There are two options to consider when getting started with Razor in Visual Studio for Mac: Razor Pages in ASP.NET Core and ASP.NET Core MVC. For tutorials and more information on both options, visit one of the guides below: