chore: 设置代码格式

This commit is contained in:
刘旭 2022-07-20 18:36:55 +08:00
commit 7b22a4ecf7
3 changed files with 16 additions and 10 deletions

View file

@ -10,9 +10,9 @@ cpp_generate_documentation_comments = xml
# Visual C++ 格式设置
cpp_indent_braces = false
cpp_indent_multi_line_relative_to = innermost_parenthesis
cpp_indent_within_parentheses = indent
cpp_indent_preserve_within_parentheses = true
cpp_indent_multi_line_relative_to = statement_begin
cpp_indent_within_parentheses = align_to_parenthesis
cpp_indent_preserve_within_parentheses = false
cpp_indent_case_contents = true
cpp_indent_case_labels = false
cpp_indent_case_contents_when_block = false
@ -27,9 +27,9 @@ cpp_new_line_before_open_brace_type = same_line
cpp_new_line_before_open_brace_function = same_line
cpp_new_line_before_open_brace_block = same_line
cpp_new_line_before_open_brace_lambda = same_line
cpp_new_line_scope_braces_on_separate_lines = false
cpp_new_line_close_brace_same_line_empty_type = false
cpp_new_line_close_brace_same_line_empty_function = false
cpp_new_line_scope_braces_on_separate_lines = true
cpp_new_line_close_brace_same_line_empty_type = true
cpp_new_line_close_brace_same_line_empty_function = true
cpp_new_line_before_catch = false
cpp_new_line_before_else = false
cpp_new_line_before_while_in_do_while = false

View file

@ -8,7 +8,7 @@
<userSettings>
<SteveCadwallader.CodeMaid.Properties.Settings>
<setting name="Cleaning_AutoCleanupOnFileSave" serializeAs="String">
<value>True</value>
<value>False</value>
</setting>
<setting name="Cleaning_RemoveMultipleConsecutiveBlankLines"
serializeAs="String">
@ -27,6 +27,12 @@
<setting name="Cleaning_RemoveBlankLinesBeforeClosingBrace" serializeAs="String">
<value>False</value>
</setting>
<setting name="Progressing_HideBuildProgressOnBuildStop" serializeAs="String">
<value>False</value>
</setting>
<setting name="Progressing_ShowBuildProgressOnBuildStart" serializeAs="String">
<value>False</value>
</setting>
</SteveCadwallader.CodeMaid.Properties.Settings>
</userSettings>
</configuration>

View file

@ -75,7 +75,7 @@
<Grid
MaxWidth="400"
HorizontalAlignment="Stretch"
ColumnSpacing="10">
ColumnSpacing="15">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
@ -91,14 +91,14 @@
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
<StackPanel Orientation="Vertical" Spacing="5">
<StackPanel Orientation="Vertical" Spacing="6">
<TextBlock Text="名称" />
<TextBox
Height="32"
HorizontalAlignment="Stretch"
Text="{x:Bind NewProfileViewModel.Name, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</StackPanel>
<StackPanel Orientation="Vertical" Spacing="5">
<StackPanel Orientation="Vertical" Spacing="6">
<TextBlock Text="复制缩放配置" />
<ComboBox
x:Name="ProfilesComboBox"