Code Cleanup - Using Order

Is there any way to control the using order in ReSharper's code cleanup?

It generates this order for me:

using System;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;

using App.Common.Config;
using App.Common.SystemFramework;

using Microsoft.Practices.EnterpriseLibrary.Data.Sql;

 

The Order I want is:

using System;
using System.Data;
using System.Data.Common;
using System.Data.SqlClient;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using App.Common.Config;
using App.Common.SystemFramework;

 

Rationale -  

System / Windows First

3rd Party / Other / Microsoft etc.

Solution-based usings.

Then alphabetical.

Finally, drop the carriage returns between lines.

Is there a way to configure this?

 

0
1 comment
Official comment

Hello,

 

Sorry for the delayed response.

This is default Optimize 'using' directives code cleanup option behavior that  sorts the namespace import directives the following way:

all System.* namespaces go first, sorted alphabetically by the second word after the dot; all other namespaces go next, in alphabetical order.

There's no way to customize sorting order.

Thank you.

Please sign in to leave a comment.