Change the indentation style of Visual Studio 2008

Visual Studio 2008 insists on HTML indentation as follows:

<h1> title</h1> <h2> subtitle</h2> 

where for me it is much nicer:

 <h1>title</h1> <h2>subtitle</h2> 

Is there a way to tell Visual Studio 2008 to use a later indentation style when performing automatic formatting?

+4
source share
1 answer

In the "Parameters" section in the "HTML" section, go to "Format" and click "Special tag parameters." Then find the tags you want to change (h1, h2, etc.), and uncheck the indentation. ( Source )

The above guide is for Visual Studio 2005, so it may be slightly different in 2008, but I'm sure you will find it.

+5
source

All Articles