1- #  EditorConfig is awesome:http://EditorConfig.org
1+ #  EditorConfig is awesome:http://EditorConfig.org
22#  For dotnet and Csharp specific see below
33#  https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference
44
@@ -26,12 +26,10 @@ insert_final_newline = true
2626
2727#  ReSharper properties
2828resharper_html_attribute_indent  = single_indent 
29- resharper_convert_to_primary_constructor_highlighting  = none 
30- resharper_unused_type_global_highlighting = none 
31- resharper_check_namespace_highlighting = none 
29+ resharper_convert_to_primary_constructor_highlighting  = false 
3230
3331#  Development files
34- [* .{cs,csx,cshtml,csproj,razor,sln,props,targets,json,yml,gitignore} ]
32+ [* .{cs,csx,cshtml,csproj,razor,sln,props,targets,json,yml,gitignore, } ]
3533charset  = " utf-8" 
3634trim_trailing_whitespace  = true 
3735
@@ -63,6 +61,9 @@ dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:sil
6361dotnet_style_require_accessibility_modifiers  = for_non_interface_members:silent 
6462
6563#  Expression-level preferences
64+ csharp_style_deconstructed_variable_declaration  = true :suggestion 
65+ csharp_style_inlined_variable_declaration  = true :suggestion 
66+ csharp_style_throw_expression  = true :suggestion 
6667dotnet_style_coalesce_expression  = true :suggestion 
6768dotnet_style_collection_initializer  = true :suggestion 
6869dotnet_style_explicit_tuple_names  = true :suggestion 
@@ -139,6 +140,7 @@ csharp_style_prefer_primary_constructors = false
139140csharp_style_prefer_top_level_statements  = false 
140141
141142#  Expression-level preferences
143+ csharp_prefer_simple_default_expression  = true 
142144csharp_prefer_simple_default_expression  = true :suggestion 
143145csharp_style_deconstructed_variable_declaration  = true 
144146csharp_style_implicit_object_creation_when_type_is_apparent  = true 
@@ -244,15 +246,25 @@ dotnet_naming_symbols.non_private_static_fields.required_modifiers = static
244246
245247dotnet_naming_style.non_private_static_field_style.capitalization  = pascal_case 
246248
247- #  Naming conventions for all class-scoped members ( PascalCase) 
248- dotnet_naming_rule.class_scoped_members_should_be_pascal_case .severity  = suggestion 
249- dotnet_naming_rule.class_scoped_members_should_be_pascal_case .symbols  = class_scoped_members 
250- dotnet_naming_rule.class_scoped_members_should_be_pascal_case .style  = pascal_case 
249+ #  Constants are  PascalCase
250+ dotnet_naming_rule.constants_should_be_pascal_case .severity  = suggestion 
251+ dotnet_naming_rule.constants_should_be_pascal_case .symbols  = constants 
252+ dotnet_naming_rule.constants_should_be_pascal_case .style  = constant_style 
251253
252- dotnet_naming_symbols.class_scoped_members .applicable_kinds  = field,  property,   method,   event 
253- dotnet_naming_symbols.class_scoped_members.applicable_accessibilities   = private,   internal,   protected,   public 
254+ dotnet_naming_symbols.constants .applicable_kinds  = field,  local 
255+ dotnet_naming_symbols.constants.required_modifiers   = const 
254256
255- dotnet_naming_style.pascal_case.capitalization  = pascal_case 
257+ dotnet_naming_style.constant_style.capitalization  = pascal_case 
258+ 
259+ #  Static fields are PascalCase 
260+ dotnet_naming_rule.static_fields_should_be_pascal_case.severity  = suggestion 
261+ dotnet_naming_rule.static_fields_should_be_pascal_case.symbols  = static_fields 
262+ dotnet_naming_rule.static_fields_should_be_pascal_case.style  = static_field_style 
263+ 
264+ dotnet_naming_symbols.static_fields.applicable_kinds  = field 
265+ dotnet_naming_symbols.static_fields.required_modifiers  = static 
266+ 
267+ dotnet_naming_style.static_field_style.capitalization  = pascal_case 
256268
257269#  local variables should be camelCase
258270dotnet_naming_rule.camel_case_for_local_variables.severity  = suggestion 
@@ -272,10 +284,6 @@ dotnet_naming_symbols.local_functions.applicable_kinds = local_function
272284
273285dotnet_naming_style.local_function_style.capitalization  = pascal_case 
274286
275- #  dotnet_diagnostic options
276- dotnet_diagnostic.CS1591.severity  = none 
277- dotnet_diagnostic.TW0001.severity  = error 
278- dotnet_diagnostic.TWD001.severity  = warning 
279287
280288# ### Analyizer settings ####
281289dotnet_code_quality.null_check_validation_methods  = NotNull 
0 commit comments