One of my standard Visual Studio add-ins is XAML Styler. This add-in auto-formats your XAML (typically on save), taking into account a bunch of options you can set to configure the add-in (attributes on a new row, take whitespace into account, et cetera).
As the original version doesn’t look like it’s being maintained anymore, my colleague Nico Vermeir forked it a while ago, updated it so it also works in Visual Studio 2013, and put all of the source code on GitHub (great idea, by the way :-)).
I had some time left during my holidays, so I figured I’d add in a few extra options that might come in handy: auto-ordering by Grid & Canvas attached properties, and parallel processing of multiple files. The original version processed a XAML-file one-way from beginning to end, so I had to rework this a bit to allow for easier tree manipulation.
And this is where you come in 🙂
This blog post is a call to action: got a feature you’d like to see in XAML Styler that involves tree manipulation, well, then go to Nico’s XAML Styler repository, fork it, and add your manipulation to the processing step you’ll find in the source code. The community will be thankful, and as an added bonus you’ll get that glowing feeling you get when helping someone out 🙂
Of course, you’re also welcome to simply suggest features or log a bug if you encounter one.
Happy coding!