I constantly format XML and XAML for my blog posts and for live presentations. The method I demonstrate is simply wonderful.
Before the format
After the format (nicely indented now)
This tool is free and easy to use. You download it off the web.
XML Marker will insert spaces near equal (=) signs. A quick search and replace can fix that. Look for “ = “ and replace with “=”
Well, I suppose that's one way. Whenever I guild a new machine one of my first installs in the Visual Studio Extension XAML Styler (visualstudiogallery.msdn.microsoft.com/d6634d0e-38fb-48b6-829f-dadbc5c2fb62). This will not only indent but will alphabetize your attributes! It will skip elements and attributes you tell it to. It will format binding syntax (extension formatting). You can even set tolerance so it won't wrap short tags. I wish I wrote.
To each his own,
This is something resharper should do.. Maybe it can..? :)
A link to download the app would have been helpful -_-
After reading Bruno's post and Jerry's response, I didn't know which tool to use, but after downloading xml-marker, I see that a pertinent bit of into was elided: xml-marker is an evaluation version. And so, I will Czech out the other...
As a follow-up, I think the VS Extension XAML Styler works just dandy - easy as pie to install and then right-click and select "Beautify XAML"