Repository navigation
Update .editorconfig template to set dotnet_separate_import_directive_groups to false - #50476
Conversation
|
This PR is targeting |
873ed26 to
fd3ee3f
Compare
fd3ee3f to
7711129
Compare
7711129 to
be0996e
Compare
be0996e to
5f9d0ae
Compare
|
2 checks failed, unsure if related |
5f9d0ae to
c82a2e4
Compare
c82a2e4 to
7bdad2b
Compare
|
Due to lack of recent activity, this PR has been labeled as 'Stale'. It will be closed if no further activity occurs within 7 more days. Any new comment will remove the label. |
Just waiting for maintainers to acknowledge previous comment |
7bdad2b to
8e1b737
Compare
|
Due to lack of recent activity, this PR has been labeled as 'Stale'. It will be closed if no further activity occurs within 7 more days. Any new comment will remove the label. |
|
Hoping this could land in .NET 11 |
|
@jaredpar I know this isn't a huge change, but who do I need to ping to get this merged? |
…fault value - `false`
0ef4af6 to
2e76d73
Compare
…separation-of-imports
|
/ba-g flaky test on the Windows Framework leg |
|
Thanks for this @wdolek, and sorry for this one slipping through the cracks. |
|
/backport to release/10.0.2xx |
|
Started backporting to |
Happy to see this merged and backported but didn't 10.0.2xx go out of support in May? https://learn.microsoft.com/en-us/dotnet/core/porting/versioning-sdk-msbuild-vs#supported-net-versions (Can't AI be used to help with things not falling through the cracks?) |
|
/backport to release/11.0.2xx |
|
Started backporting to |
This PR updates the default
.editorconfigfile generated by callingdotnet new editorconfig, so that generated file contains:(default value) instead of
true.Rationale
The current template sets
dotnet_separate_import_directive_groupstotrue, which causes IDEs and analyzers to insert blank lines between groups of using directives.In practice, this style does not appear to be widely adopted in the .NET ecosystem - neither in Microsoft-maintained repositories nor in many popular community libraries. From reviewing current codebases, the more common convention is to omit blank lines between using groups.
While formatting preferences are subjective, leaving this setting at its default (
false) better aligns the generated template with the style most developers are likely to encounter in existing .NET projects. It also avoids surprising developers who rundotnet new editorconfigand later have to change this value back during code reviews.This is a minor change, but if I’ve missed any additional template/test updates, please let me know and I’ll adjust.