Skip to content

Commit

Permalink
.editorconfig add additional settings exported from VS 17.4.0 Preview…
Browse files Browse the repository at this point in the history
… 4.0
VincentH-Net committed Oct 25, 2022
1 parent 126081f commit 876735b
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -314,3 +314,33 @@ dotnet_style_namespace_match_folder = false:silent
dotnet_style_allow_multiple_blank_lines_experimental = true:silent
dotnet_style_allow_statement_immediately_after_block_experimental = true:silent
dotnet_code_quality_unused_parameters = all:warning

# Settings added in .NET 7:
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_labels = one_less_than_current

csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_semicolon_in_for_statement = true

csharp_space_around_declaration_statements = false

csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false

csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_square_brackets = false

csharp_style_prefer_not_pattern = true
csharp_style_prefer_readonly_struct = true
csharp_style_prefer_switch_expression = true
csharp_style_prefer_utf8_string_literals = true

dotnet_remove_unnecessary_suppression_exclusions = none
dotnet_separate_import_directive_groups = false

dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed
30 changes: 30 additions & 0 deletions src/Editorconfig/.editorconfig
Original file line number Diff line number Diff line change
@@ -314,3 +314,33 @@ dotnet_style_namespace_match_folder = false:silent
dotnet_style_allow_multiple_blank_lines_experimental = true:silent
dotnet_style_allow_statement_immediately_after_block_experimental = true:silent
dotnet_code_quality_unused_parameters = all:warning

# Additional settings exported from VS 17.4.0 Preview 4.0:
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_labels = one_less_than_current

csharp_space_after_comma = true
csharp_space_after_dot = false
csharp_space_after_semicolon_in_for_statement = true

csharp_space_around_declaration_statements = false

csharp_space_before_comma = false
csharp_space_before_dot = false
csharp_space_before_open_square_brackets = false
csharp_space_before_semicolon_in_for_statement = false
csharp_space_between_empty_square_brackets = false

csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_square_brackets = false

csharp_style_prefer_not_pattern = true
csharp_style_prefer_readonly_struct = true
csharp_style_prefer_switch_expression = true
csharp_style_prefer_utf8_string_literals = true

dotnet_remove_unnecessary_suppression_exclusions = none
dotnet_separate_import_directive_groups = false

dotnet_style_prefer_foreach_explicit_cast_in_source = when_strongly_typed

0 comments on commit 876735b

Please sign in to comment.