Visual Studio 2005 tips

Formatting xml

<xml><tag1><tag2/></tag1></xml>

If this is the XML file in Visual Studio 2005, you can use the Edit->Advanced->Format Document (Ctrl-K Ctrl-D) to change it to

<xml>
      <tag1>
              <tag2/>
      </tag1>
</xml>

Note this menu command as well as it's Format Selection (Ctrl-K, Ctrl-F) partner are really handy when you change some sort of formatting option in Tools->Options (like changing tabs to spaces or how you prefer to do new lines after your braces.)

posted @ Thursday, November 10, 2005 8:03 AM

Print

Comments on this entry:

No comments posted yet.

Your comment:



 (will not be displayed)


 
 
 
Please add 6 and 6 and type the answer here:
 

Live Comment Preview:

 
«December»
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910