Open HTML files in IDE editor

Chris JUNGE 1 Reputation point
2021-05-18T18:38:47.717+00:00

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.

When I add a .txt file to the project, it gets opened in the default windows 10 text editor.

How can I open html project files in VS editor by default?

Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Sam of Simple Samples 5,546 Reputation points
    2021-05-18T21:25:03.177+00:00

    What happens when you right-click on the HTML file in the Solution Explorer then select Open With...? Is the HTML Editor selected? If not then select it and try that. If that works then make it the default.

    97657-vsopenwith.jpg

    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.