asp.net 如何在Visual Studio 2022中自动生成.cshtml文件中的html模板?

bsxbgnwa  于 2022-12-05  发布在  .NET
关注(0)|答案(1)|浏览(355)

While doing an ASP.NET project, I created a blank Details.cshtml file in Visual Studio 2022. After that, I wanted to auto-generate an html template in the file, like below -

<html xmlns=""http://www.w3.org/1999/xhtml>
  <head>
    <title></title>
  </head>
  <body>

  </body>
</html>

I thought that typing html and then pressing Tab would do the trick (as per the 3:30 timestamp in this video ), however it didn't work. When I searched on the internet, all I got was VS Code related results, not even one result talked about Visual Studio.
Can anybody please help me with this?

dffbzjpn

dffbzjpn1#

我相信你可以做到这一点,只需输入一个“!”,并按下标签:)

相关问题