@@ -1384,6 +1384,7 @@ The following list shows the formatting convention rules available in Visual Stu
1384
1384
- .NET formatting settings
1385
1385
- [Organize usings ](#usings )
1386
1386
- dotnet_sort_system_directives_first
1387
+ - dotnet_separate_import_directive_groups
1387
1388
- C # formatting settings
1388
1389
- [Newline options ](#newline )
1389
1390
- csharp_new_line_before_open_brace
@@ -1426,6 +1427,7 @@ The following table shows the rule name, applicable languages, default value, an
1426
1427
| Rule name | Applicable languages | Visual Studio default | Visual Studio 2017 version |
1427
1428
| ---------- - | -------------------- | ---------------------- | ---------------- |
1428
1429
| dotnet_sort_system_directives_first | C # and Visual Basic | true | 15 . 3 |
1430
+ | dotnet_separate_import_directive_groups | C # and Visual Basic | true | 15 . 5 |
1429
1431
1430
1432
** dotnet \_sort \_system \_directives_first **
1431
1433
@@ -1454,6 +1456,34 @@ Example *.editorconfig* file:
1454
1456
dotnet_sort_system_directives_first = true
1455
1457
```
1456
1458
1459
+ ** dotnet \_separate \_import \_directive \_groups **
1460
+
1461
+ - When this rule is set to **true **, place a blank line between using directive groups .
1462
+ - When this rule is set to **false **, do not place a blank line between using directive groups .
1463
+
1464
+ Code examples :
1465
+
1466
+ ```csharp
1467
+ // dotnet_separate_import_directive_groups = true
1468
+ using System .Collections .Generic ;
1469
+ using System .Threading .Tasks ;
1470
+
1471
+ using Octokit ;
1472
+
1473
+ // dotnet_separate_import_directive_groups = false
1474
+ using System .Collections .Generic ;
1475
+ using System .Threading .Tasks ;
1476
+ using Octokit ;
1477
+ ```
1478
+
1479
+ Example * .editorconfig * file :
1480
+
1481
+ ```EditorConfig
1482
+ # .NET formatting settings:
1483
+ [* .{cs ,vb }]
1484
+ dotnet_separate_import_directive_groups = true
1485
+ ```
1486
+
1457
1487
### C# formatting settings
1458
1488
1459
1489
The formatting rules in this section apply only to C # code .
@@ -2187,6 +2217,7 @@ charset = utf-8-bom
2187
2217
[* .{cs ,vb }]
2188
2218
# Organize usings
2189
2219
dotnet_sort_system_directives_first = true
2220
+ dotnet_separate_import_directive_groups = false
2190
2221
2191
2222
# this. preferences
2192
2223
dotnet_style_qualification_for_field = false : none
0 commit comments