BLOGS BY TOPIC▼
BLOGS BY AUTHOR▼
BLOGS BY YEAR▼
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.
- Visual Studio - default settings to change for ASP.NET
- Changing Visual Studio Start-Up Options
- Opening Visual Studio pages in HTML view by default
- Inserting Attribute Quote Marks Automatically (this blog)
- 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.
Inserting Attribute Quote Marks Automatically
This is one of the strangest defaults - why wouldn't you want to insert quotation marks round attributes?

In this diagram, the quotation marks have been inserted automatically - this happens for any HTML or ASP.NET tag.
To tell Visual Studio 2010 to insert quotation marks automatically, from the menu select Tools -> Options... then:

Complete the dialog box as shown in the numbered steps below
The steps to follow are:
- Select the Text Editor tab of the startup options dialog box.
- Choose the Formatting tab in the HTML section.
- Tick the box to insert attribute values automatically when typing.
Believe me, this will change your life!
- Visual Studio - default settings to change for ASP.NET
- Changing Visual Studio Start-Up Options
- Opening Visual Studio pages in HTML view by default
- Inserting Attribute Quote Marks Automatically (this blog)
- Creating a Navigate Backward Key