Anyone know how to tell Visual Studio 2008 to always open up ASP.NET pages in "Source" mode, not "Design" mode?
2 Answers
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).
-
1Thanks. I searched all over the place in VS and in Google before posting this question, and came up empty handed. Your reply came in seconds ahead, so I'll mark it as the answer.– roycoSep 28, 2009 at 4:00
-
Cheers. FWIW, I like the way Eclipse allows you to filter by keyword search in options. That would be useful in Visual Studio because I think we all have problems finding the right options sometimes :)– si618Sep 28, 2009 at 4:04
-
1
-
Thank you, please feel free to edit my answer, assuming you have enough rights to do so.– si618Sep 5, 2017 at 3:06
Yep, go to Tools -> Options -> HTML Designer -> General and select the "Start pages in Source View" option