17:57Extract HTML to a Razor component in Visual Studio with 1 Click
From the creator
Have you ever found yourself adding too much code to a .razor file and wanted an easy way to move it to its own reusable component? When working with HTML in a Razor file, you can now use CTRL+. or right-click and select Quick Actions and Refactorings to automatically extract your selected HTML markup to a new Razor component in Visual Studio. ✅ Download Visual Studio Toady: https://devblogs.microsoft.com/visualstudio/visual-studio-2022-v17-13-is-now-available/ Connect with .NET: Blog: https://aka.ms/dotnet/blog Twitter: https://aka.ms/dotnet/twitter TikTok: https://aka.ms/dotnet/tiktok Mastodon: https://aka.ms/dotnet/mastodon LinkedIn: https://aka.ms/dotnet/linkedin Facebook: https://aka.ms/dotnet/facebook Docs: https://learn.microsoft.com/dotnet Forums: https://aka.ms/dotnet/forums 🙋♀️Q&A: https://aka.ms/dotnet-qa 👨🎓Microsoft Learn: https://aka.ms/learndotnet #dotnet #visualstudio #razor
Published 2025-03-25 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





