GithubHelp home page GithubHelp logo

kevindockx / xamlstyler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nicovermeir/xamlstyler

0.0 2.0 1.0 369 KB

A fork of the original Xaml Styler plugin as found on http://xamlstyler.codeplex.com

License: Apache License 2.0

C# 100.00%

xamlstyler's Introduction

XamlStyler

A fork of the original Xaml Styler plugin as found on http://xamlstyler.codeplex.com This fork has been created to continue development on the awesome XAML styler plugin created by Chris Chaochen. To support the efforts Chris has put into this project my fork will only support Visual Studio 2013 and higher. For Visual Studio 2012 support please install Chris his version.

Features

  • Format/Beautify Xaml markup in one click.

beautify option

  • Sort attributes based on following rules:
    • x:Class
    • XML Namespaces
      • WPF built-in namespaces
      • User defined namespaces
    • Key, Name or Title attributes
      • x:Key
      • x:Name
      • Title
    • Grid or Canvas related attached layout attributes
      • Numeric layout attributes Width/MinWidth/MaxWidth
      • Height/MinHeight/MaxHeight
      • Margin
    • Alignment related attributes HorizontalAlignment/ContentHorizontalAlignment
      • VerticalAlignment/ContentVerticalAlignment
      • Panel.ZIndex
    • Other attributes
  • Short attributes tolerance.
    • When an element contains 2 or less than 2 attributes, line break is not applied for * better readability.
  • Special characters(e.g., &) are preserved.
  • Respect "significant" whitespace situation.
    • No new linefeed will be added to , if it is immediatly following *another element to prevent the rendering of unexpected space.
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>
  • Indent Xaml markup based on "Tab Size/Indent Size/Indent Charater" settings available in "Option/Text Editor/XAML/Tabs" page.

markup settings

  • XamlStyler specific options.
    • Define your own attribute ordering rules
    • Define your own attribute line break rules
    • Markup extension formatting
    • Automatically reformat Xaml file on saving

xamlstyler options

  • Import/Export XamlStyler settings.

export settings

Contribute

xamlstyler's People

Contributors

bartlannoeye avatar kevindockx avatar nicovermeir avatar

Watchers

 avatar  avatar

Forkers

kimballjohnson

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.