############################### # Core EditorConfig Options # ############################### root = true [*] charset = utf-8 indent_style = tab insert_final_newline = true trim_trailing_whitespace = true ############################### # .NET Coding Conventions # ############################### [*.cs] csharp_new_line_before_catch = false csharp_new_line_before_else = false csharp_new_line_before_finally = false csharp_new_line_before_members_in_anonymous_types = false csharp_new_line_before_members_in_object_initializers = false csharp_new_line_before_open_brace = none csharp_new_line_between_query_expression_clauses = false csharp_prefer_braces = true:suggestion csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async:suggestion csharp_preserve_single_line_statements = false csharp_space_after_cast = true csharp_style_expression_bodied_accessors = when_on_single_line:suggestion csharp_style_expression_bodied_constructors = when_on_single_line:suggestion csharp_style_expression_bodied_indexers = when_on_single_line:suggestion csharp_style_expression_bodied_methods = when_on_single_line:suggestion csharp_style_expression_bodied_operators = when_on_single_line:suggestion csharp_style_expression_bodied_properties = when_on_single_line:suggestion csharp_style_pattern_matching_over_as_with_null_check = false:suggestion csharp_style_var_elsewhere = false:suggestion csharp_style_var_for_built_in_types = false:suggestion csharp_style_var_when_type_is_apparent = false:suggestion [*.{cs,vb}] # PascalCase for naming everything but parameters dotnet_naming_rule.all_members_must_be_capitalized.severity = suggestion dotnet_naming_rule.all_members_must_be_capitalized.style = all_symbols dotnet_naming_rule.all_members_must_be_capitalized.symbols = all_symbols dotnet_naming_style.all_symbols.capitalization = pascal_case dotnet_naming_symbols.all_symbols.applicable_accessibilities = * dotnet_naming_symbols.all_symbols.applicable_kinds = class,struct,interface,enum,property,method,field,event,delegate # camelCase for naming parameters dotnet_naming_rule.parameters_must_be_camel_case.severity = suggestion dotnet_naming_rule.parameters_must_be_camel_case.style = params dotnet_naming_rule.parameters_must_be_camel_case.symbols = params dotnet_naming_style.params.capitalization = camel_case dotnet_naming_symbols.params.applicable_accessibilities = * dotnet_naming_symbols.params.applicable_kinds = parameter dotnet_sort_system_directives_first = true:suggestion dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:suggestion dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggestion dotnet_style_parentheses_in_other_operators = never_if_unnecessary:suggestion dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:suggestion dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion dotnet_style_predefined_type_for_member_access = true:suggestion dotnet_style_prefer_auto_properties = true:suggestion dotnet_style_prefer_conditional_expression_over_assignment = true:suggestion dotnet_style_prefer_conditional_expression_over_return = false:suggestion dotnet_style_qualification_for_event = false:suggestion dotnet_style_qualification_for_field = false:suggestion dotnet_style_qualification_for_method = false:suggestion dotnet_style_qualification_for_property = false:suggestion dotnet_style_require_accessibility_modifiers = always:suggestion