@@ -7,11 +7,8 @@ end_of_line = crlf
77indent_style = space
88insert_final_newline = true
99trim_trailing_whitespace = true
10- dotnet_style_qualification_for_field = false :silent
11- dotnet_style_qualification_for_property = false :silent
12- dotnet_style_qualification_for_method = false :silent
13- dotnet_style_qualification_for_event = false :silent
14- dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
10+ indent_size = 2
11+ tab_width = 2
1512
1613# c# 文件
1714[* .cs ]
@@ -116,6 +113,7 @@ csharp_style_prefer_readonly_struct = true
116113# 代码块首选项
117114csharp_prefer_braces = true :silent
118115csharp_prefer_simple_using_statement = true :suggestion
116+ csharp_prefer_system_threading_lock = true :suggestion
119117csharp_style_namespace_declarations = file_scoped:suggestion
120118csharp_style_prefer_method_group_conversion = true :silent
121119csharp_style_prefer_top_level_statements = true :silent
@@ -131,6 +129,7 @@ csharp_style_prefer_null_check_over_type_check = true
131129csharp_style_prefer_range_operator = true
132130csharp_style_prefer_tuple_swap = true
133131csharp_style_prefer_utf8_string_literals = true
132+ csharp_style_prefer_primary_constructors = true :suggestion
134133csharp_style_throw_expression = true
135134csharp_style_unused_value_assignment_preference = discard_variable
136135csharp_style_unused_value_expression_statement_preference = discard_variable
@@ -297,7 +296,3 @@ dotnet_naming_style.以_为前缀.required_prefix = _
297296dotnet_naming_style.以_为前缀.required_suffix =
298297dotnet_naming_style.以_为前缀.word_separator =
299298dotnet_naming_style.以_为前缀.capitalization = camel_case
300-
301- [* .csproj ]
302- indent_size = 2
303- tab_width = 2
0 commit comments