Reputation: 183
I created a ASP.NET Core project with Visual Studio 2019 and I added a .html file. When I double click on the file, VS only opens it in edge, instead of opening it in editor. When I drag and drop the file on the editor windows, it's still the same.
How can I open html files in VS editor by default?
Edit:
It looks like a bug in Visual Studio 2019 ASP.NET Projects. It just happened there. Even new added .cs files are opened in windows 10 default text editor.
Upvotes: 0
Views: 665
Reputation: 7180
Right click your html page.Click open with.
Then you can see:
Click HTML Editor
and Set as Default
.
Upvotes: 1