Last active
February 6, 2020 14:49
-
-
Save roubachof/4fc4b4721021d84d4aed9442493a3067 to your computer and use it in GitHub Desktop.
XamlStyler json config file supporting all the `Xamarin.Forms` attributes for all my projects and decided to share it with you. So you won't start from nothing :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AttributesTolerance": 2, | |
"KeepFirstAttributeOnSameLine": true, | |
"MaxAttributeCharactersPerLine": 0, | |
"MaxAttributesPerLine": 1, | |
"NewlineExemptionElements": "RadialGradientBrush, GradientStop, LinearGradientBrush, ScaleTransfom, SkewTransform, RotateTransform, TranslateTransform, Trigger, Condition, Setter", | |
"SeparateByGroups": false, | |
"AttributeIndentation": 0, | |
"AttributeIndentationStyle": 1, | |
"RemoveDesignTimeReferences": false, | |
"EnableAttributeReordering": true, | |
"AttributeOrderingRuleGroups": [ | |
"x:Class", | |
"xmlns, xmlns:x, xmlns:d, xmlns:mc, mc:Ignorable", | |
"xmlns:*", | |
"x:Key, Key, x:Name, Name, x:Uid, Uid, Title", | |
"x:TypeArguments, x:DataType", | |
"BindingContext", | |
"Grid.Row, Grid.RowSpan, Grid.Column, Grid.ColumnSpan, RowSpacing, ColumnSpacing, Spacing, AbsoluteLayout.LayoutFlags, AbsoluteLayout.LayoutBounds", | |
"IsVisible", | |
"Style, WidthRequest, HeightRequest, MinimumWidthRequest, MinimumHeightRequest", | |
"Margin, Padding, HorizontalOptions, VerticalOptions, HorizontalTextAlignment, VerticalTextAlignment", | |
"BackgroundColor", | |
"*:*, *", | |
"PageSource, PageIndex, Offset, Color, TargetName, Property, Value, StartPoint, EndPoint", | |
"mc:Ignorable, d:IsDataSource, d:LayoutOverrides, d:IsStaticText", | |
"Scale, Translation*, Rotation*, Storyboard.*, From, To, Duration", | |
"Clicked", | |
"*Command*", | |
"Text, Source, SelectedIndex, ItemTemplate, ItemsSource", | |
], | |
"FirstLineAttributes": "", | |
"OrderAttributesByName": true, | |
"PutEndingBracketOnNewLine": false, | |
"RemoveEndingTagOfEmptyElement": true, | |
"SpaceBeforeClosingSlash": true, | |
"RootElementLineBreakRule": 0, | |
"ReorderVSM": 2, | |
"ReorderGridChildren": false, | |
"ReorderCanvasChildren": false, | |
"ReorderSetters": 0, | |
"FormatMarkupExtension": true, | |
"NoNewLineMarkupExtensions": "x:Bind, Binding", | |
"ThicknessSeparator": 2, | |
"ThicknessAttributes": "Margin, Padding, BorderThickness, ThumbnailClipMargin", | |
"FormatOnSave": true, | |
"CommentPadding": 2, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
All formattings are my own.