In visual studio, when I paste an html fragment into the original window of an aspx / ascx file, the IDE re-delays the content. For example, if I insert this ...
<div><ul><li><a href="#">Item 1</a></li><li> <a href="#">Item 2</a></li><li><a href="#">Item 3</a></li></ul>/div>
.. ide will reformat the text to ....
<div> <ul> <li><a href="#">Item 1</a></li><li><a href="#">Item 2</a></li><li><a href="#">Item 3</a></li></ul> </div>
But actually, I want the html to be formatted like this ...
<div> <ul> <li> <a href="#">Item 1</a> </li> <li> <a href="#">Item 2</a> </li> <li> <a href="#">Item 3</a> </li> </ul> </div>
How to change the way VS html indents to the above?
source share