root = true [*] charset = utf-8 end_of_line = lf insert_final_newline = true indent_style = space indent_size = 4 trim_trailing_whitespace = true [*.{csproj,props,targets,slnx,xml,resx,xaml,json,yml,yaml,svg}] indent_size = 2 [*.{js,css,html}] indent_size = 2 [*.cs] csharp_style_namespace_declarations = file_scoped:warning csharp_using_directive_placement = outside_namespace dotnet_sort_system_directives_first = true csharp_prefer_braces = when_multiline:suggestion csharp_style_var_for_built_in_types = true:silent csharp_style_var_when_type_is_apparent = true:silent csharp_style_expression_bodied_methods = when_on_single_line:silent csharp_new_line_before_open_brace = all dotnet_style_qualification_for_field = false:suggestion dotnet_naming_rule.private_fields_underscore.symbols = private_fields dotnet_naming_rule.private_fields_underscore.style = underscore_camel dotnet_naming_rule.private_fields_underscore.severity = suggestion dotnet_naming_symbols.private_fields.applicable_kinds = field dotnet_naming_symbols.private_fields.applicable_accessibilities = private dotnet_naming_style.underscore_camel.required_prefix = _ dotnet_naming_style.underscore_camel.capitalization = camel_case # Interop and codec code legitimately uses these patterns. dotnet_diagnostic.CA1416.severity = warning dotnet_diagnostic.CA2101.severity = none dotnet_diagnostic.SYSLIB1054.severity = none dotnet_diagnostic.CA1401.severity = none