Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure Visual Studio (2010) to open aspx pages on code behind by default on double click?

The question says it all... its pretty simple, and it can be done by selecting the file and pressing F7 but I'm always double clicking accidentally and visual studio takes forever to open the design view page (even if its almost empty), but I just wanna go straight to the code.

Any tips?

like image 687
Francisco Noriega Avatar asked Dec 16 '22 13:12

Francisco Noriega


1 Answers

I had this problem too. My solution was to change Visual Studio to open up pages in HTML view by default. Because VS doesn't need to format the page, this is MUCH quicker. You can see how to get Visual Studio to open pages in HTML view at http://www.wiseowl.co.uk/blog/s153/visual-studio-html-view.htm.

To tell Visual Studio 2010 to open files automatically in Source view,

  • Tools -> Options
  • Select the General section of the HTML Designer tab.
  • Choose to start pages in Source View.
like image 147
Andy Brown Avatar answered Jan 17 '23 07:01

Andy Brown