royco
royco

Reputation: 5529

Can Visual Studio always open ASP.NET pages in Source view, not Design view?

Anyone know how to tell Visual Studio 2008 to always open up ASP.NET pages in "Source" mode, not "Design" mode?

Upvotes: 31

Views: 8235

Answers (2)

si618
si618

Reputation: 16848

Tools → Options → Web Forms Designer → Start pages in "Source view".

In VS < 2015 it was called HTML Designer.

For other extensions you can define specific behaviour by right clicking on a file and selecting Open With. This allows you to set once off or default behaviour for opening more esoteric file types.

For example, I use the Sandcastle Help File Builder, so have .shfbproj extensions loading up the SHFB GUI, but you could also load it up as plain XML (or whatever).

Upvotes: 55

lomaxx
lomaxx

Reputation: 115763

Yep, go to Tools -> Options -> HTML Designer -> General and select the "Start pages in Source View" option

Upvotes: 6

Related Questions