Wednesday, June 18, 2008

Automatically insert quotes in Visual Studio when editing HTML

A nice feature of Visual Studio 2005 that is DISABLED BY DEFAULT is to automatically insert attribute value quotes.

So when typing something like (td valign= the editor will automatically insert: (td valign="" and place the cursor inbetween the two newly inserted quotation marks.

To enable this feature, follow these steps:
  1. From the menu select Tools | Options
  2. Expand the "Text Editor" node
  3. Expand the "HTML" node
  4. Click on the "Format" node
  5. Tick the "Insert attribute value quotes when typing" tickbox under the "Automatic formatting options" group. (see image below)
  6. Click OK
Thats it.

Fin.

1 comment:

Inheritx Solutions said...

This is nice and informative post about HTML, Thanks to post.

Thanks for useful tips.

Asp.net Development | Sharepoint Development