root = true [*] charset = utf-8 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true indent_style = space indent_size = 4 [*.{csproj,props,targets,sln,json,yml}] indent_size = 2 [*.cs] max_line_length = off csharp_style_namespace_declarations = file_scoped:warning csharp_style_var_for_built_in_types = false:suggestion csharp_style_var_when_type_is_apparent = true:suggestion csharp_style_var_elsewhere = false:suggestion csharp_style_expression_bodied_methods = when_on_single_line:suggestion csharp_style_expression_bodied_properties = true:suggestion csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion csharp_style_prefer_switch_expression = true:suggestion csharp_style_prefer_pattern_matching = true:suggestion csharp_prefer_braces = false:silent csharp_new_line_before_open_brace = all dotnet_style_qualification_for_field = false:suggestion dotnet_style_qualification_for_property = false:suggestion dotnet_style_qualification_for_method = false:suggestion dotnet_sort_system_directives_first = true dotnet_style_require_accessibility_modifiers = omit_if_default:suggestion # Static readonly fields and constants use PascalCase; other private fields use _camelCase. dotnet_naming_rule.static_readonly_fields.symbols = static_readonly_fields dotnet_naming_rule.static_readonly_fields.style = pascal dotnet_naming_rule.static_readonly_fields.severity = suggestion dotnet_naming_symbols.static_readonly_fields.applicable_kinds = field dotnet_naming_symbols.static_readonly_fields.applicable_accessibilities = private dotnet_naming_symbols.static_readonly_fields.required_modifiers = static, readonly dotnet_naming_rule.constants.symbols = constants dotnet_naming_rule.constants.style = pascal dotnet_naming_rule.constants.severity = suggestion dotnet_naming_symbols.constants.applicable_kinds = field dotnet_naming_symbols.constants.required_modifiers = const dotnet_naming_style.pascal.capitalization = pascal_case dotnet_naming_rule.private_fields.symbols = private_fields dotnet_naming_rule.private_fields.style = underscore_camel dotnet_naming_rule.private_fields.severity = suggestion dotnet_naming_symbols.private_fields.applicable_kinds = field dotnet_naming_symbols.private_fields.applicable_accessibilities = private dotnet_naming_style.underscore_camel.capitalization = camel_case dotnet_naming_style.underscore_camel.required_prefix = _