XAML Styler – Bug and fixes
For those who don’t know yet, XAML Styler is a small Visual Studio extension that reformats your xaml UI files to look nice.
XAML Styler was built on top of the Beautiful Xaml extension, and was later published to the Visual Studio Gallery.
The Good
The stable XAML Styler for Visual 2010 and 2012 can be downloaded here
http://xamlstyler.codeplex.com/
The Bad
The version above is only for 2012 and below. If you use Visual Studio 2013 and still want XAML Styler, here is your answer
The Project’s main repository: https://github.com/nicovermeir/xamlstyler
Download the built extension here: https://visualstudiogallery.msdn.microsoft.com/3de2a3c6-def5-42c4-924d-cc13a29ff5b7
It’s have a bug, annoying bug
The XAML Styler for 2013 has a very annoying bug: it adds a lot of blank lines to your XAML code. The workaround?
The Ugly
Structurally, 2012 and 2013 aren’t that far apart. Someone downloaded the whole 2012 XAML Styler and rebuilt it to fit Visual Studio 2013
http://www.spikie.be/blog/post/2013/11/13/.aspx
That page is a bit confusing though. To make downloading easier, I re-uploaded it to box.com
https://app.box.com/s/5qi6fj9sqb88412tsgf5
Note that this version has no version control, meaning it won’t update itself when a new version comes out.
How to use
After downloading, restart Visual Studio so the Extension takes effect
Open any XAML file, right click and pick Beautiful XAML

Before formatting

After formatting

Adjusting the properties
Go to Tools > Option

Pick XAML Styler at the very bottom and tweak it however you like
