Search code examples
c#visual-studiorazorintellisensevisual-studio-2022

Snippets don't work on Visual Studio 2022


Version: 17.0.1 Professional

I can't use any snippet. I'm having a hard time, especially on Razor. Help please

enter image description here


Solution

  • The new Razor editor in VS2022 does not have full feature parity with the older one from previous versions; it does however have new features specific to newer ASP.NET Core runtime features. There is still continued effort in achieving feature parity, so please send feedback to help the team prioritize which features are in highest demand.

    You can turn toggle back to the old editor in the HTML editor settings (Tools -> Options -> Text Editor -> HTML -> Advanced -> Use legacy Razor editor for ASP.NET Core) Tools/Options settings

    Edit: This blog post calls out several of the missing features. As mentioned above, the team is working on making most of them work again, but that is largely prioritized based on the feedback being received through the Razor Tooling github or the VS Feedback system (the team looks at both).