79339273

Date: 2025-01-08 13:14:46
Score: 1.5
Natty:
Report link

Currently, Visual Studio does not support creating custom snippets for Razor, so something like or won't work. You can check the supported languages here: Code snippets schema reference.

Apparently, only built-in snippets work in .razor files. You can find a discussion and some suggestions to work around this limitation, such as editing built-in snippets or using the legacy editor, in this issue: 6397.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: evieira