Handy tip for HTML editor in Visual Studio 2008
In case you’re like me and like typing your HTML manually without the use of the Designer then you may find the following tip very useful and handy. When you add an attribute inside any element and put the equal sign “=” Visual Studio can automatically insert quotes (opening and closing) for you and put the cursor between them. This way you can type the attribute value right away without wasting any time.
How to enable this
- Open Visual Studio 2008
- Navigate to Tools –> Options
- Check the checkbox named “Show all settings” at the left bottom corner of the window
- Expand the Text Editor tag
- Expand the HTML tag
- Click on the Format sub menu item
- At the Automatic formatting options section check the first checkbox named Insert attribute value quotes when typing (I personally have all options checked in this section)
I like this feature a lot since it increases my productivity and makes HTML editing much pleasant.
