The initial version of sorting usings (#661) did not retain existing empty lines.
If we try to retain existing empty lines then
- What happens when usings are moved?
- Can the user easily correct any misplaced empty lines?
If we add empty lines automatically
- Should they only appear between groups that are sorted? Or between the first part of the namespace?
// between sorted groups
using System.IO.Abstractions;
using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.Extensions.Logging;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;
// by first part of namespace
using System.IO.Abstractions;
using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.Extensions.Logging;
using YamlDotNet.Serialization;
using YamlDotNet.Serialization.NamingConventions;
The initial version of sorting usings (#661) did not retain existing empty lines.
If we try to retain existing empty lines then
If we add empty lines automatically