Skip to content

Getting Started

David Grochocki edited this page Sep 18, 2016 · 9 revisions

####Usage#### Right-click with any file and select "Format XAML" to format your XAML source code.

Context Menu

####Special Characters#### Special characters (e.g., &) are preserved.

####Whitespace#### "Significant whitespace" is respected. In other words, to prevent the rendering of unexpected spaces, newlines will not be added to if it is immediately followed by another element.

Significant Whitespace between <Run/>
  No Whitespace between <Run/>
vs
<TextBlock>
<Run>A</Run>
<Run>B</Run>
</TextBlock>
 vs
<TextBlock>
<Run>A</Run><Run>B</Run>
</TextBlock>

####Indentation#### XAML Styler respects Visual Studio's indentation settings. You can change these options at Tools → Options → Text Editor → XAML → Tabs.

Visual Studio Tab Settings

####Import/Export Settings#### XAML Styler intergrates with Visual Studio's Import and Export Settings Wizzard.

Visual Studio Import/Export Settings