How can I reformat XAML in VS 2008?

XAML Visual Studio 2008 (SP1) cannot reformat XML to a consistent style.

What tools can I use to get a well formatted XAML file? Preference from integration with Studio.

+4
source share
8 answers

Here's a link specific to XAML VS2008 formatting, but the good news is that you can do it directly in VS.

http://geekswithblogs.net/lbugnion/archive/2007/09/29/Cleaning-up-XAML-code-and-improving-parsing-time-with-Blend.aspx

+4
source

When I looked at the parameters, I found that I needed to set "Place each attribute on a separate line" and "The first position attribute on the same line as the start tag" in "Tools"> "Options" → "Text Editor"> XAML > Formatting> Interval "and reset The keyboard displays in the" Tools> Options ...> Environment> Keyboard "section on" Visual C # 2005 ".

Now the XAML editor changes XAML to my taste by pressing Ctrl + E , D.

+5
source

Have you tried CTRL K, D?

+4
source

Karl has just released v2 of his XAML Power toys, and he can reformat your xaml from VS2008! Watch the XAML Power Toys Accessories video

http://karlshifflett.wordpress.com/2008/09/16/xaml-power-toys-v2-release-finally-code-name-hawaii/

+2
source

Or try the xaml styler located at http://xamlstyler.codeplex.com/ for visual studio 2010. If you ever used Kaxaml Xaml Scrubber and you liked it, then you might think that this extension is "Xaml Scrubber" for Visual Studio

Check http://xamlstyler.codeplex.com/ for basic features.

+2
source

The only tool I found is Kaxaml , which does good formatting (writing "XAML Scrubber" in the left menu), but the standalone editor doesn't quite make a cut.

+1
source

http://www.dimebrain.com/2008/05/automating-read.html is a good plugin for formatting your xaml so that attributes line up under each other.

+1
source
0
source

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


All Articles