Skip to content

Commit d52b276

Browse files
authored
Merge pull request #2715 from Flow-Launcher/add-global-xamlstyler-settings
Add Settings.XamlStyler to root of the solution
2 parents 5afce95 + 909771c commit d52b276

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

Flow.Launcher.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
5454
Scripts\post_build.ps1 = Scripts\post_build.ps1
5555
README.md = README.md
5656
SolutionAssemblyInfo.cs = SolutionAssemblyInfo.cs
57+
Settings.XamlStyler = Settings.XamlStyler
5758
EndProjectSection
5859
EndProject
5960
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Flow.Launcher.Plugin.Shell", "Plugins\Flow.Launcher.Plugin.Shell\Flow.Launcher.Plugin.Shell.csproj", "{C21BFF9C-2C99-4B5F-B7C9-A5E6DDDB37B0}"

Settings.XamlStyler

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"AttributesTolerance": 2,
3+
"KeepFirstAttributeOnSameLine": false,
4+
"MaxAttributeCharactersPerLine": 0,
5+
"MaxAttributesPerLine": 1,
6+
"NewlineExemptionElements": "RadialGradientBrush, GradientStop, LinearGradientBrush, ScaleTransform, SkewTransform, RotateTransform, TranslateTransform, Trigger, Condition, Setter",
7+
"SeparateByGroups": false,
8+
"AttributeIndentation": 0,
9+
"AttributeIndentationStyle": 1,
10+
"RemoveDesignTimeReferences": false,
11+
"IgnoreDesignTimeReferencePrefix": false,
12+
"EnableAttributeReordering": true,
13+
"AttributeOrderingRuleGroups": [
14+
"x:Class",
15+
"xmlns, xmlns:x",
16+
"xmlns:*",
17+
"x:Key, Key, x:Name, Name, x:Uid, Uid, Title",
18+
"Grid.Row, Grid.RowSpan, Grid.Column, Grid.ColumnSpan, Canvas.Left, Canvas.Top, Canvas.Right, Canvas.Bottom",
19+
"Width, Height, MinWidth, MinHeight, MaxWidth, MaxHeight",
20+
"Margin, Padding, HorizontalAlignment, VerticalAlignment, HorizontalContentAlignment, VerticalContentAlignment, Panel.ZIndex",
21+
"*:*, *",
22+
"PageSource, PageIndex, Offset, Color, TargetName, Property, Value, StartPoint, EndPoint",
23+
"mc:Ignorable, d:IsDataSource, d:LayoutOverrides, d:IsStaticText",
24+
"Storyboard.*, From, To, Duration"
25+
],
26+
"FirstLineAttributes": "",
27+
"OrderAttributesByName": true,
28+
"PutEndingBracketOnNewLine": false,
29+
"RemoveEndingTagOfEmptyElement": true,
30+
"SpaceBeforeClosingSlash": true,
31+
"RootElementLineBreakRule": 0,
32+
"ReorderVSM": 2,
33+
"ReorderGridChildren": false,
34+
"ReorderCanvasChildren": false,
35+
"ReorderSetters": 0,
36+
"FormatMarkupExtension": true,
37+
"NoNewLineMarkupExtensions": "x:Bind, Binding",
38+
"ThicknessSeparator": 1,
39+
"ThicknessAttributes": "Margin, Padding, BorderThickness, ThumbnailClipMargin, CornerRadius",
40+
"FormatOnSave": true,
41+
"CommentPadding": 2,
42+
}

0 commit comments

Comments
 (0)