EditorConfig
EditorConfig copied to clipboard
New Settings in VS 16.11
Edit: Moved these settings to: https://github.com/RehanSaeed/EditorConfig/issues/76. More settings listed below.
See https://github.com/dotnet/roslyn/pull/50358
# IDE2000, AllowMultipleBlankLines
dotnet_style_allow_multiple_blank_lines_experimental = false:warning
# IDE2001, AllowEmbeddedStatementsOnSameLine
csharp_style_allow_embedded_statements_on_same_line_experimental = false:warning
# IDE2002, AllowBlankLinesBetweenConsecutiveBraces
csharp_style_allow_blank_lines_between_consecutive_braces_experimental = false:warning
# IDE2003, AllowStatementImmediatelyAfterBlock
dotnet_style_allow_statement_immediately_after_block_experimental = false:warning
# IDE2004, AllowBlankLineAfterColonInConstructorInitializer
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = false:warning
Add C# 10 setting:
# Undocumented
csharp_style_namespace_declarations = file_scoped:warning
Fixed csharp_style_namespace_declarations = file_scoped:warning
in https://github.com/RehanSaeed/EditorConfig/pull/61.
There is also a new setting to require the use of System.HashCode
.
- https://github.com/dotnet/roslyn/issues/42694
-
csharp_style_prefer_top_level_statements
https://github.com/dotnet/roslyn/pull/60383 -
csharp_style_prefer_tuple_swap
-
csharp_style_prefer_extended_property_pattern
-
csharp_style_prefer_local_over_anonymous_function
- This rule was renamed from csharp_style_pattern_local_over_anonymous_function https://github.com/dotnet/docs/issues/28285. -
csharp_style_prefer_method_group_conversion
https://github.com/dotnet/roslyn/pull/58875. -
csharp_style_prefer_utf8_string_literals
-
dotnet_style_prefer_foreach_explicit_cast_in_source
https://github.com/dotnet/roslyn/pull/60120.
TODO: Add documentation for new settings:
- https://github.com/dotnet/roslyn/issues/65757
- https://github.com/dotnet/docs/issues/30361
Fixed by #75