Is there an XML formatter available as an add-in for Visual Studio 2010? I am currently using Notepad++ and using the XML Tools plug-in to get the formatting sorted.
Is there an add-in for VS2010, which will do something similar?
To access XML formatting options, choose Tools > Options > Text Editor > XML, and then choose Formatting.
The XML editor in Visual Studio is based on the text editor and includes additional support for the XML languages. When you open an XML file in Visual Studio, it opens in the XML editor. The XML editor includes the following features: XML 1.0 syntax checking.
Then there are a couple keyboard shortcuts to beautify the XML: Pretty Print: Ctrl + Shift + Alt + B. Pretty Print (indent attributes): Ctrl + Shift + Alt + A.
Notepad++ has support for validation of XML file content. Validation can be done using Plugin Menu -> XML Tools ->Validate option or you can use short cut CTRL+ALT+Shift+M.
Simply press Ctrl+E,D
or use the following command from the menu:
Edit -> Advanced -> Format Document
In my version of VS 2010 it's Ctrl+K,D
or
Edit -> Format Document
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With