visual studio how to format code
The Visual Studio 2005 HTML editor has a feature that lets you automatically format HTML code with your preferences. From the Visual Studio Edit menu, select Advanced, and then choose Format Document or Format Selection (or use the shortcuts Ctrl+K, Ctrl+D or Ctrl+K, Ctrl+F respectively):