summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/.editorconfig9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/.editorconfig b/src/.editorconfig
index 4271803d..a5cdcf97 100644
--- a/src/.editorconfig
+++ b/src/.editorconfig
@@ -12,13 +12,16 @@ insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
+[*.csproj]
+indent_size = 2
+insert_final_newline = false
+
[*.json]
indent_size = 2
##########
## C# formatting
## documentation: https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
-## some undocumented settings from: https://github.com/dotnet/roslyn/blob/master/.editorconfig
##########
[*.cs]
@@ -47,6 +50,7 @@ dotnet_style_explicit_tuple_names = true:suggestion
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
csharp_style_conditional_delegate_call = true:suggestion
+csharp_prefer_simple_default_expression = true:suggestion
# prefer method block bodies
csharp_style_expression_bodied_methods = false:suggestion
@@ -59,3 +63,6 @@ csharp_style_expression_bodied_accessors = true:suggestion
# prefer inline out variables
csharp_style_inlined_variable_declaration = true:warning
+
+# avoid superfluous braces
+csharp_prefer_braces = false:suggestion