WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit af949af

Browse files
Add C# preferences to EditorConfig file
1 parent 1620b79 commit af949af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.editorconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ indent_style = space
1212
indent_size = 2
1313

1414
[*.cs]
15+
csharp_prefer_braces = true
1516
csharp_style_expression_bodied_methods = true
1617
csharp_style_expression_bodied_constructors = true
1718
csharp_style_expression_bodied_operators = true
@@ -20,5 +21,6 @@ csharp_style_expression_bodied_indexers = true
2021
csharp_style_expression_bodied_accessors = true
2122
csharp_style_expression_bodied_lambdas = true
2223
csharp_style_expression_bodied_local_functions = true
24+
csharp_style_pattern_local_over_anonymous_function = false
2325
csharp_style_namespace_declarations = file_scoped:warning
2426
dotnet_diagnostic.S101.severity = suggestion

0 commit comments

Comments
 (0)