Xml / xaml attributes for sorting in Visual Studio 2010

Is there an option in Visual Studio 2010 or does anyone know of a plugin that allows you to sort the xml / xaml attributes in alphabetical order?

I would like to be able to press a hot key and have the following:

<Button Grid.Row="1" IsEnabled="True" IsDefault="True" ContentTemplate="{DynamicResource InsertButtonContentTemplate}" Click="_insertButton_Click" Content="Insert" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Column="1" /> 

list its attributes and turn into this:

 <Button Click="_insertButton_Click" Content="Insert" ContentTemplate="{DynamicResource InsertButtonContentTemplate}" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Right" IsEnabled="True" IsDefault="True" VerticalAlignment="Center" /> 
+6
source share
2 answers

I found this Visual Studio 2010 plugin during my travels. Looks like I'm doing what I was looking for. (The plugin can be found at http://xamlstyler.codeplex.com/ )

+3
source

You can use the XAML Markup Attribute Sorter - sorts the attributes of any well-formed XML, such as XAML and XML files.

0
source

Source: https://habr.com/ru/post/905574/


All Articles