From 8d93e425a3b60c8802b395ed841bd8f4e6a7e790 Mon Sep 17 00:00:00 2001 From: zeroone Date: Sun, 8 Sep 2024 11:32:48 +0800 Subject: [PATCH] =?UTF-8?q?+=20=E4=BB=A3=E7=A0=81=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AtomUI.sln.DotSettings | 24 ++++++++++++++++++++++++ Settings.XamlStyler | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 Settings.XamlStyler diff --git a/AtomUI.sln.DotSettings b/AtomUI.sln.DotSettings index 5068cd9..23fecf1 100644 --- a/AtomUI.sln.DotSettings +++ b/AtomUI.sln.DotSettings @@ -1,3 +1,27 @@  + True + True + True + 3 + 2 + 1 + True + True + True + True + True + True + True + True + 1 + True + True + <Policy><Descriptor Staticness="Any" AccessRightKinds="Private" Description="Avalonia Stuff"><ElementKinds><Kind Name="CONSTANT_FIELD" /></ElementKinds></Descriptor><Policy Inspect="True" Prefix="PART_" Suffix="" Style="AaBb"><ExtraRule Prefix="STATE_" Suffix="" Style="AaBb" /></Policy></Policy> + + True + True + True + True + True True True \ No newline at end of file diff --git a/Settings.XamlStyler b/Settings.XamlStyler new file mode 100644 index 0000000..6b11adc --- /dev/null +++ b/Settings.XamlStyler @@ -0,0 +1,42 @@ +{ + "AttributesTolerance": 2, + "KeepFirstAttributeOnSameLine": true, + "MaxAttributeCharactersPerLine": 120, + "MaxAttributesPerLine": 1, + "NewlineExemptionElements": "RadialGradientBrush, GradientStop, LinearGradientBrush, ScaleTransform, SkewTransform, RotateTransform, TranslateTransform, Trigger, Condition, Setter, ColumnDefinition, RowDefinition", + "SeparateByGroups": false, + "AttributeIndentation": 0, + "AttributeIndentationStyle": 1, + "RemoveDesignTimeReferences": false, + "EnableAttributeReordering": true, + "AttributeOrderingRuleGroups": [ + "x:Class", + "xmlns, xmlns:x", + "xmlns:*", + "x:Key, Key, x:Name, Name, x:Uid, Uid, Title", + "Grid.Row, Grid.RowSpan, Grid.Column, Grid.ColumnSpan, Canvas.Left, Canvas.Top, Canvas.Right, Canvas.Bottom", + "Width, Height, MinWidth, MinHeight, MaxWidth, MaxHeight", + "Margin, Padding, HorizontalAlignment, VerticalAlignment, HorizontalContentAlignment, VerticalContentAlignment, Panel.ZIndex", + "*:*, *", + "PageSource, PageIndex, Offset, Color, TargetName, Property, Value, StartPoint, EndPoint", + "mc:Ignorable, d:IsDataSource, d:LayoutOverrides, d:IsStaticText", + "Storyboard.*, From, To, Duration" + ], + "FirstLineAttributes": "x:Key, x:Name, Key, Name", + "OrderAttributesByName": true, + "PutEndingBracketOnNewLine": false, + "RemoveEndingTagOfEmptyElement": true, + "SpaceBeforeClosingSlash": true, + "RootElementLineBreakRule": 0, + "ReorderVSM": 2, + "ReorderGridChildren": false, + "ReorderCanvasChildren": false, + "ReorderSetters": 0, + "ReorderVisualStateManager":0, + "FormatMarkupExtension": true, + "NoNewLineMarkupExtensions": "x:Bind, Binding", + "ThicknessSeparator": 2, + "ThicknessAttributes": "Margin, Padding, BorderThickness, ThumbnailClipMargin", + "FormatOnSave": false, + "CommentPadding": 1 +} \ No newline at end of file