按长度排序名称空间

时间:2016-05-19 08:57:27

标签: c# visual-studio resharper

是否有人知道使用resharper按长度排序usings指令的可能性?

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;

1 个答案:

答案 0 :(得分:0)

对于Visual Studio,您可以使用“ Using Directive Formatter”之类的市场工具

对于ReSharper,它是清理中的标准操作。 您可以在ReSharper中找到它。工具| Cleanup Code command

快捷方式:Ctrl+E, C。如果此快捷方式不起作用,则可以在ReSharper | Windows Server 2003中设置清除选项。选项-在“代码编辑”组下。