dotnet / dotnet/templating

EditorConfig template should contain all rules

Open
#4,393 7 comments 2 reactions 0 assignees View on GitHub
feature triage:transfer-to-sdk triaged
Dominant language
No language data
Stars
1.7k
Forks
399
Avg merge
3d 5h
Merged PRs (30d)
39

Description

The file created by `dotnet new editorconfig` ([source](https://github.com/dotnet/sdk/blob/main/template_feed/Microsoft.DotNet.Common.ItemTemplates/content/EditorConfig/Dotnet/.editorconfig)) does not contain all available rules. Compared with an EditorConfig file exported by Visual Studio 2026 (via Tools - Options - Languages - C# - Code Style - Generate .editorconfig file from settings) it is missing some rules.

As of SDK version 10.0.200 the .editorconfig template is missing the following rules:

```
end_of_line

dotnet_hide_advanced_members
dotnet_member_insertion_location
dotnet_prefer_system_hash_code
dotnet_property_generation_behavior
dotnet_search_reference_assemblies
dotnet_style_prefer_non_hidden_explicit_cast_in_source
csharp_prefer_system_threading_lock
csharp_style_prefer_implicitly_typed_lambda_expression
csharp_style_prefer_simple_property_accessors
csharp_style_prefer_unbound_generic_type_in_nameof

dotnet_style_allow_multiple_blank_lines_experimental
dotnet_style_allow_statement_immediately_after_block_experimental
csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental
csharp_style_allow_blank_line_after_token_in_arrow_expression_clause_experimental
csharp_style_allow_blank_line_after_token_in_conditional_expression_experimental
csharp_style_allow_blank_lines_between_consecutive_braces_experimental
csharp_style_allow_embedded_statements_on_same_line_experimental
```

Also see dotnet/roslyn#60539 for the experimental rules.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.