C# 用于格式化导入的自定义重新精简规则

C# 用于格式化导入的自定义重新精简规则,c#,format,resharper,C#,Format,Resharper,我有一个c#类库项目,我们有一个规则,迫使我们将使用分为两部分,第一部分是系统。*使用和其他部分是使用的其余部分(每种艺术都是按字母顺序排列的)。有没有办法强制resharper formatter以这种方式格式化我的代码 以下是格式化规则的预期结果: using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using MyNamespace; u

我有一个c#类库项目,我们有一个规则,迫使我们将使用分为两部分,第一部分是系统。*使用和其他部分是使用的其余部分(每种艺术都是按字母顺序排列的)。有没有办法强制resharper formatter以这种方式格式化我的代码

以下是格式化规则的预期结果:

using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;

using MyNamespace;
using MyNamespace.Test;

您需要的选项是Extensions>ReSharper>Options>Code Editing>C#>Formatting Style>Blank Lines>Declarations>不同“using”组之间的空白行

考虑使用格式化选项自动检测。手动选择所需格式(所需格式)的代码块,Alt-Enter>Format Selection>Detect formatting settings