Visual Studio 2022 Extension for .cshtml files.

Paul van Vulpen 0 Reputation points
2023-11-17T13:02:16.5+00:00

I'm working on a visual studio 2022 Extension.

But as soon as i import it inside the visual studio 2022 "Tools" -> "Code Snippet Manager" it will work in files like: HomeController.cs but not in home.cshtml (All .cshtml files).

What kind of <Code Language="" do i need to put in here to get it working in .cshtml files. I have tried 'html' and "razor" but that didn't work.

Screenshot 2023-11-17 134902

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,830 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
189 questions
{count} votes