11# ##############################
22# Core EditorConfig Options #
33# ##############################
4-
54root = true
6-
75# All files
86[* ]
97indent_style = space
10- insert_final_newline = true
11- charset = utf-8
12-
13- # Code files
14- [* .{cs,csx,vb,vbx} ]
15- indent_size = 4
168
17- [* .yml ]
9+ # XML project files
10+ [* .{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj} ]
1811indent_size = 2
1912
20- [* .json ]
13+ # XML config files
14+ [* .{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct} ]
2115indent_size = 2
2216
17+ # Code files
18+ [* .{cs,csx,vb,vbx} ]
19+ indent_size = 4
20+ insert_final_newline = true
21+ charset = utf-8
2322# ##############################
2423# .NET Coding Conventions #
2524# ##############################
26-
2725[* .{cs,vb} ]
2826# Organize usings
2927dotnet_sort_system_directives_first = true
30- dotnet_separate_import_directive_groups = false
31-
3228# this. preferences
3329dotnet_style_qualification_for_field = true :warning
3430dotnet_style_qualification_for_property = true :warning
3531dotnet_style_qualification_for_method = true :warning
3632dotnet_style_qualification_for_event = true :warning
37-
3833# Language keywords vs BCL types preferences
3934dotnet_style_predefined_type_for_locals_parameters_members = true :silent
4035dotnet_style_predefined_type_for_member_access = true :silent
41-
4236# Parentheses preferences
4337dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silent
4438dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silent
4539dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silent
4640dotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent
47-
4841# Modifier preferences
4942dotnet_style_require_accessibility_modifiers = for_non_interface_members:silent
5043dotnet_style_readonly_field = true :suggestion
51-
5244# Expression-level preferences
5345dotnet_style_object_initializer = true :suggestion
5446dotnet_style_collection_initializer = true :suggestion
@@ -61,63 +53,50 @@ dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion
6153dotnet_style_prefer_auto_properties = true :silent
6254dotnet_style_prefer_conditional_expression_over_assignment = true :silent
6355dotnet_style_prefer_conditional_expression_over_return = true :silent
64-
6556# ##############################
6657# Naming Conventions #
6758# ##############################
68-
6959# Style Definitions
7060dotnet_naming_style.pascal_case_style.capitalization = pascal_case
71-
72- # Use PascalCase for constant fields
61+ # Use PascalCase for constant fields
7362dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion
7463dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields
7564dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style
7665dotnet_naming_symbols.constant_fields.applicable_kinds = field
7766dotnet_naming_symbols.constant_fields.applicable_accessibilities = *
7867dotnet_naming_symbols.constant_fields.required_modifiers = const
79-
8068# ##############################
81- # C# Code Style Rules #
69+ # C# Coding Conventions #
8270# ##############################
83-
8471[* .cs ]
8572# var preferences
8673csharp_style_var_for_built_in_types = false :warning
87- csharp_style_var_when_type_is_apparent = true : suggestion
74+ csharp_style_var_when_type_is_apparent = false : warning
8875csharp_style_var_elsewhere = false :warning
89-
9076# Expression-bodied members
91- csharp_style_expression_bodied_methods = when_on_single_line:suggestion
92- csharp_style_expression_bodied_constructors = when_on_single_line:suggestion
93- csharp_style_expression_bodied_operators = when_on_single_line:suggestion
94- csharp_style_expression_bodied_properties = when_on_single_line:suggestion
95- csharp_style_expression_bodied_indexers = when_on_single_line:suggestion
96- csharp_style_expression_bodied_accessors = when_on_single_line:suggestion
97- csharp_style_expression_bodied_lambdas = when_on_single_line:suggestion
98-
99- # Pattern-matching preferences
77+ csharp_style_expression_bodied_methods = false :silent
78+ csharp_style_expression_bodied_constructors = false :silent
79+ csharp_style_expression_bodied_operators = false :silent
80+ csharp_style_expression_bodied_properties = true :silent
81+ csharp_style_expression_bodied_indexers = true :silent
82+ csharp_style_expression_bodied_accessors = true :silent
83+ # Pattern matching preferences
10084csharp_style_pattern_matching_over_is_with_cast_check = true :suggestion
10185csharp_style_pattern_matching_over_as_with_null_check = true :suggestion
102-
10386# Null-checking preferences
10487csharp_style_throw_expression = true :suggestion
10588csharp_style_conditional_delegate_call = true :suggestion
106-
10789# Modifier preferences
10890csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion
109-
11091# Expression-level preferences
111- csharp_prefer_braces = true :warning
92+ csharp_prefer_braces = true :silent
11293csharp_style_deconstructed_variable_declaration = true :suggestion
11394csharp_prefer_simple_default_expression = true :suggestion
11495csharp_style_pattern_local_over_anonymous_function = true :suggestion
11596csharp_style_inlined_variable_declaration = true :suggestion
116-
11797# ##############################
11898# C# Formatting Rules #
11999# ##############################
120-
121100# New line preferences
122101csharp_new_line_before_open_brace = all
123102csharp_new_line_before_else = true
@@ -126,12 +105,10 @@ csharp_new_line_before_finally = true
126105csharp_new_line_before_members_in_object_initializers = true
127106csharp_new_line_before_members_in_anonymous_types = true
128107csharp_new_line_between_query_expression_clauses = true
129-
130108# Indentation preferences
131109csharp_indent_case_contents = true
132110csharp_indent_switch_labels = true
133111csharp_indent_labels = flush_left
134-
135112# Space preferences
136113csharp_space_after_cast = false
137114csharp_space_after_keywords_in_control_flow_statements = true
@@ -144,15 +121,12 @@ csharp_space_around_binary_operators = before_and_after
144121csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
145122csharp_space_between_method_call_name_and_opening_parenthesis = false
146123csharp_space_between_method_call_empty_parameter_list_parentheses = false
147-
148124# Wrapping preferences
149125csharp_preserve_single_line_statements = true
150126csharp_preserve_single_line_blocks = true
151-
152- # #################################
153- # Visual Basic Code Style Rules #
154- # #################################
155-
127+ # ##############################
128+ # VB Coding Conventions #
129+ # ##############################
156130[* .vb ]
157131# Modifier preferences
158132visual_basic_preferred_modifier_order = Partial,Default,Private,Protected,Public,Friend,NotOverridable,Overridable,MustOverride,Overloads,Overrides,MustInherit,NotInheritable,Static,Shared,Shadows,ReadOnly,WriteOnly,Dim,Const,WithEvents,Widening,Narrowing,Custom,Async:suggestion
0 commit comments