.editorconfig
################################ Core EditorConfig Options ################################ root = true # All files[*]indent_style = spaceinsert_final_newline = trueend_of_line = lftrim_trailing_whitespace = true # Code files[*.{cs,csx,vb,vbx}]indent_size = 4charset = utf-8-bom [*.{js,ts}]indent_size = 2charset = utf-8 [*.md]trim_trailing_whitespace = false ################################ .NET Coding Conventions ################################ [*.{cs,vb}]# Organize usingsdotnet_sort_system_directives_first = true # this. preferencesdotnet_style_qualification_for_field = true:errordotnet_style_qualification_for_property = true:errordotnet_style_qualification_for_method = true:errordotnet_style_qualification_for_event = true:error # Language keywords vs BCL types preferencesdotnet_style_predefined_type_for_locals_parameters_members = true:errordotnet_style_predefined_type_for_member_access = true:error # Parentheses preferencesdotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:silentdotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:silentdotnet_style_parentheses_in_other_binary_operators = always_for_clarity:silentdotnet_style_parentheses_in_other_operators = never_if_unnecessary:silent # Modifier preferencesdotnet_style_require_accessibility_modifiers = for_non_interface_members:nonedotnet_style_readonly_field = true:error # Expression-level preferencesdotnet_style_object_initializer = true:errordotnet_style_collection_initializer = true:errordotnet_style_explicit_tuple_names = true:errordotnet_style_null_propagation = true:errordotnet_style_coalesce_expression = true:errordotnet_style_prefer_is_null_check_over_reference_equality_method = true:silentdotnet_prefer_inferred_tuple_names = true:errordotnet_prefer_inferred_anonymous_type_member_names = true:errordotnet_style_prefer_auto_properties = true:silentdotnet_style_prefer_conditional_expression_over_assignment = true:silentdotnet_style_prefer_conditional_expression_over_return = true:silent ################################ Naming Conventions ################################ # Style Definitionsdotnet_naming_style.pascal_case_style.capitalization = pascal_case # Use PascalCase for constant fieldsdotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestiondotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fieldsdotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_styledotnet_naming_symbols.constant_fields.applicable_kinds = fielddotnet_naming_symbols.constant_fields.applicable_accessibilities = *dotnet_naming_symbols.constant_fields.required_modifiers = const ################################ C# Coding Conventions ################################ [*.cs]# var preferencescsharp_style_var_for_built_in_types = true:errorcsharp_style_var_when_type_is_apparent = true:errorcsharp_style_var_elsewhere = true:error # Expression-bodied memberscsharp_style_expression_bodied_methods = true:errorcsharp_style_expression_bodied_constructors = true:errorcsharp_style_expression_bodied_operators = true:errorcsharp_style_expression_bodied_properties = true:errorcsharp_style_expression_bodied_indexers = true:errorcsharp_style_expression_bodied_accessors = true:error # Pattern matching preferencescsharp_style_pattern_matching_over_is_with_cast_check = true:errorcsharp_style_pattern_matching_over_as_with_null_check = true:error # Null-checking preferencescsharp_style_throw_expression = true:errorcsharp_style_conditional_delegate_call = true:error # Modifier preferencescsharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:error # Expression-level preferencescsharp_prefer_braces = true:nonecsharp_style_deconstructed_variable_declaration = true:errorcsharp_prefer_simple_default_expression = true:errorcsharp_style_pattern_local_over_anonymous_function = true:errorcsharp_style_inlined_variable_declaration = true:error ################################ C# Formatting Rules ################################ # New line preferencescsharp_new_line_before_open_brace = allcsharp_new_line_before_else = truecsharp_new_line_before_catch = truecsharp_new_line_before_finally = truecsharp_new_line_before_members_in_object_initializers = truecsharp_new_line_before_members_in_anonymous_types = truecsharp_new_line_between_query_expression_clauses = true # Indentation preferencescsharp_indent_case_contents = truecsharp_indent_switch_labels = truecsharp_indent_labels = flush_left # Space preferencescsharp_space_after_cast = falsecsharp_space_after_keywords_in_control_flow_statements = truecsharp_space_between_method_call_parameter_list_parentheses = falsecsharp_space_between_method_declaration_parameter_list_parentheses = falsecsharp_space_between_parentheses = falsecsharp_space_before_colon_in_inheritance_clause = truecsharp_space_after_colon_in_inheritance_clause = truecsharp_space_around_binary_operators = before_and_aftercsharp_space_between_method_declaration_empty_parameter_list_parentheses = falsecsharp_space_between_method_call_name_and_opening_parenthesis = falsecsharp_space_between_method_call_empty_parameter_list_parentheses = false # Wrapping preferencescsharp_preserve_single_line_statements = truecsharp_preserve_single_line_blocks = true ################################ VB Coding Conventions ################################ [*.vb]# Modifier preferencesvisual_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:error