Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 994
Matt Johnson-Pint Avatar asked Oct 11 '12 01:10

Matt Johnson-Pint


1 Answers

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.

like image 150
Fiilip Avatar answered Oct 02 '22 07:10

Fiilip