Skip to content

Lixfeld/VS-FormatXaml-Extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Format XAML

Download from Visual Studio Marketplace or GitHub. The .NET tool is also available on NuGet.org.

This extension is inspired by XamlFormatter from DannOh which I used for Visual Studio 2017 and 2019.


Unlike XAML Styler this extension formats XAML documents line by line without encoding to preserve the original string. This means that the formatter only indents the lines without reordering elements inline or between lines.

Options

In the new category "Format XAML" you can disable the formatting on save and change other settings.

Version 1.2

Select a configuration source for indentation:

  • EditorConfig (default)
  • VisualStudio
  • Custom

Keyboard shortcut

You can add a shortcut to the command in the Tools menu.
Options -> Environment -> Keyboard -> Tools.FormatXAML

License

This project is licensed under the MIT license.
Please see the third party notices for included open-source libraries.