EditorConfig icon indicating copy to clipboard operation
EditorConfig copied to clipboard

New Settings in VS 16.11

Open RehanSaeed opened this issue 3 years ago • 6 comments

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

RehanSaeed avatar Aug 09 '21 13:08 RehanSaeed

Add C# 10 setting:

# Undocumented
csharp_style_namespace_declarations = file_scoped:warning

RehanSaeed avatar Oct 12 '21 09:10 RehanSaeed

Fixed csharp_style_namespace_declarations = file_scoped:warning in https://github.com/RehanSaeed/EditorConfig/pull/61.

RehanSaeed avatar Oct 12 '21 10:10 RehanSaeed

There is also a new setting to require the use of System.HashCode.

  • https://github.com/dotnet/roslyn/issues/42694

RehanSaeed avatar Oct 20 '21 09:10 RehanSaeed

  • 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.

RehanSaeed avatar Aug 16 '22 15:08 RehanSaeed

TODO: Add documentation for new settings:

  • https://github.com/dotnet/roslyn/issues/65757
  • https://github.com/dotnet/docs/issues/30361

RehanSaeed avatar Dec 15 '22 14:12 RehanSaeed

Fixed by #75

RehanSaeed avatar Sep 19 '23 11:09 RehanSaeed