How to tell ReSharper to sort usings with system namespaces NOT at the top?

Matt Johnson-Pint picture Matt Johnson-Pint · Oct 11, 2012 · Viewed 13.2k times · Source

Visual Studio has an option to place system directives at the top when sorting them.

enter image description here

When this setting is unchecked, sorting using statements by right-clicking on them and using the Organize Usings feature, places System namespaces alphabetically along all other namespace imports.

However, ReSharper does not seem to honor this setting, nor does it have anything similar on its own Namespace Imports options page. It always behaves as if you want System namespaces at the top. This is especially annoying when you already have some at the bottom and you let ReSharper suggest a namespace to import, then you end up with some at both ends of the list.

Is there some way to fix this? Or is this just a bug/oversight in ReSharper?

Answer

Fiilip picture Fiilip · Oct 11, 2012

I am using ReSharper 7 and at least for me ReSharper takes the "System directive sorting option" from Visual Studio options.

Sometimes when VS and ReSharper settings get messed it helps to reset Visual Studio settings from Tool->Import and Export Settings->Reset all settings.