|
@@ -1,4 +1,4 @@
|
|
|
-# 如果要从更高级别的目录继承 .editorconfig 设置,请删除以下行
|
|
|
+# 如果要从更高级别的目录继承 .editorconfig 设置,请删除以下行
|
|
|
root = true
|
|
|
|
|
|
[*]
|
|
@@ -19,6 +19,9 @@ indent_style = tab
|
|
|
[*.csproj]
|
|
|
indent_size = 2
|
|
|
|
|
|
+[*.props]
|
|
|
+indent_size = 2
|
|
|
+
|
|
|
# c# 文件
|
|
|
[*.cs]
|
|
|
|
|
@@ -106,7 +109,7 @@ csharp_style_conditional_delegate_call = true:warning
|
|
|
|
|
|
# 修饰符首选项
|
|
|
csharp_prefer_static_local_function = true:suggestion
|
|
|
-csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:silent
|
|
|
+csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
|
|
|
|
|
|
# 代码块首选项
|
|
|
csharp_prefer_braces = true:warning
|
|
@@ -121,7 +124,7 @@ csharp_style_prefer_index_operator = true:warning
|
|
|
csharp_style_prefer_range_operator = true:suggestion
|
|
|
csharp_style_throw_expression = true:suggestion
|
|
|
csharp_style_unused_value_assignment_preference = discard_variable:silent
|
|
|
-csharp_style_unused_value_expression_statement_preference = discard_variable:silent
|
|
|
+csharp_style_unused_value_expression_statement_preference = discard_variable:none
|
|
|
|
|
|
# "using" 指令首选项
|
|
|
csharp_using_directive_placement = outside_namespace:warning
|
|
@@ -214,6 +217,3 @@ dotnet_naming_style.begins_with_i.required_prefix = I
|
|
|
dotnet_naming_style.begins_with_i.required_suffix =
|
|
|
dotnet_naming_style.begins_with_i.word_separator =
|
|
|
dotnet_naming_style.begins_with_i.capitalization = pascal_case
|
|
|
-
|
|
|
-# IDE1006: 命名样式
|
|
|
-dotnet_diagnostic.IDE1006.severity = silent
|