VS2022 中的新 Razor 編輯器與以前版本中的舊版本不具備完整的功能; 但是,它確實具有特定於較新的 ASP.NET 核心運行時功能的新功能。 在實現功能對等方面仍在繼續努力,因此請發送反饋以幫助團隊確定需求最高的功能的優先級。
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)