Format XML in Visual Studio

I often end up with badly formatted XML files that display as one long line in Visual Studio.

To format XML to a look more friendly, click Ctrl + K, then  Ctrl + D.

This will properly format the XML. No search/replace of newline characters is necessary anymore!

 

Leave a Reply