Chris Crozz
Chris Crozz

Reputation: 183

Visual Studio 2019 edit HTML file

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

Answers (1)

Yinqiu
Yinqiu

Reputation: 7180

Right click your html page.Click open with.

enter image description here

Then you can see:

enter image description here

Click HTML Editor and Set as Default.

Upvotes: 1

Related Questions