Changing Visual Studio default settings for ASP.NET
Part three of a five-part series of blogs

Visual Studio is a great tool for developing websites using ASP.NET - it can be made even greater by tweaking some default settings. Use this blog to change the default start-up options, assign a navigate backward key, insert attribute quote marks and open pages in HTML view by default.

  1. Visual Studio - default settings to change for ASP.NET
  2. Changing Visual Studio Start-Up Options
  3. Opening Visual Studio pages in HTML view by default (this blog)
  4. Inserting Attribute Quote Marks Automatically
  5. Creating a Navigate Backward Key

Posted by Andy Brown on 02 August 2011

You need a minimum screen resolution of about 700 pixels width to see our blogs. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Opening Visual Studio pages in HTML view by default

When you open a page in Visual Studio, by default you see it first in design view.  The first thing you then have to do is often to switch to HTML view:

Switching to HTML view

You can click on the tab to switch to HTML view.

 

To tell Visual Studio 2010 to open files automatically in HTML view, from the menu select Tools -> Options... then:

Tools Options HTML designer

Complete the dialog box as shown below

The steps to follow for the dialog box are:

  1. Select the General section of the HTML Designer tab.
  2. Choose to start pages in Source View.

When you exit Visual Studio and go back in, any web page that you load will now be opened in HTML editing view.

This blog has 0 threads Add post