Open static HTML files in the Visual Studio 2013 designer
Due to the brand new HTML editor in Visual Studio 2013, static HTML files no longer has the Design|Split|Source options enabled by default.
That’s because the new HTML editor is the default editor for all HTML files with the exception of ASP.NET Web Forms files (.aspx, .ascx, .master). However, it is only the Web Forms editor that has support for the designer and split view.
So all we have to do is to map our .html or .htm files to use the Web Forms editor instead of the new HTML editor.
Simply right-click any .html/.htm file in Solution Explorer and select Open With…
Now select HTML (Web Forms) Editor, click Set as Default and then hit OK.
All files with the same extension will now always open in the Web Forms editor and you get both Design- and Split view.
I also recorded a short video showing a different way to accomplish the same thing.
Comments
Html(web forms) editor does not support new features of vs2013. It is a disappointment for me. I can open aspx file in new html editor but webforms controls are not supported. I dont need designer mode. Is there any way to use the new HTML editor for WebForms with supporting webforms controls?
mipeUnfortunately not. Web Forms editing requires very deep and complex ties to both the ASP.NET runtime, control libraries and FrontPage components. Moving it was not an option without compromising modern features.
Mads KristensenDid you just mention the F word Mads? I was hoping any FP code had long been expunged from any product and/or source repositories. Cheers. Love VS2013
Mark NashAre they still using Frontpage in ASP Webforms?
ChrisChris, no. FrontPage is not part of ASP.NET in any way. It's just the VS editor that uses some of its components for the designer and Intellisense.
Mads KristensenThanks for clearing this up. Just love it when Micro$oft makes improvements like this.
Nick CoombsAwesome workaround! Thank You!
Tony Greenthanks! great tip that worked
tsaraya29Comments are closed