11# top-most EditorConfig file
22root = true
33
4- [* .cs ]
4+ [* .{cs,vb} ]
55indent_style = space
6- indent_size = 4
6+ indent_size = 4
7+
8+ # Organize usings
9+ dotnet_sort_system_directives_first = true
10+
11+ # this. preferences
12+ dotnet_style_qualification_for_field = false :silent
13+ dotnet_style_qualification_for_property = false :silent
14+ dotnet_style_qualification_for_method = false :silent
15+ dotnet_style_qualification_for_event = false :silent
16+
17+ # Language keywords vs BCL types preferences
18+ dotnet_style_predefined_type_for_locals_parameters_members = true :suggestion
19+ dotnet_style_predefined_type_for_member_access = true :suggestion
20+
21+ # Parentheses preferences
22+ dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
23+ dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
24+ dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
25+ dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
26+
27+ # Modifier preferences
28+ dotnet_style_require_accessibility_modifiers = never:silent
29+ dotnet_style_readonly_field = true :suggestion
30+
31+ # Expression-level preferences
32+ dotnet_style_object_initializer = true :suggestion
33+ dotnet_style_collection_initializer = true :suggestion
34+ dotnet_style_explicit_tuple_names = true :suggestion
35+ dotnet_style_null_propagation = true :suggestion
36+ dotnet_style_coalesce_expression = true :suggestion
37+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true :suggestion
38+ dotnet_style_prefer_auto_properties = true :silent
39+ dotnet_style_prefer_conditional_expression_over_assignment = true :silent
40+ dotnet_style_prefer_conditional_expression_over_return = true :silent
41+
42+ [* .cs ]
43+
44+ # var preferences
45+ csharp_style_var_for_built_in_types = true :none
46+ csharp_style_var_when_type_is_apparent = true :silent
47+ csharp_style_var_elsewhere = true :silent
48+
49+ # Expression-bodied members
50+ csharp_style_expression_bodied_methods = false :none
51+ csharp_style_expression_bodied_constructors = false :none
52+ csharp_style_expression_bodied_operators = false :none
53+ csharp_style_expression_bodied_properties = false :none
54+ csharp_style_expression_bodied_indexers = false :none
55+ csharp_style_expression_bodied_accessors = false :none
56+
57+ # Pattern matching preferences
58+ csharp_style_pattern_matching_over_is_with_cast_check = true :suggestion
59+ csharp_style_pattern_matching_over_as_with_null_check = true :suggestion
60+
61+ # Null-checking preferences
62+ csharp_style_throw_expression = true :suggestion
63+ csharp_style_conditional_delegate_call = true :suggestion
64+
65+ # Expression-level preferences
66+ csharp_prefer_braces = false :none
67+ csharp_style_deconstructed_variable_declaration = true :suggestion
68+ csharp_prefer_simple_default_expression = true :suggestion
69+ csharp_style_inlined_variable_declaration = true :suggestion
0 commit comments