Search code examples
namespacesresharperstylecopusing-statement

Set ReSharper to put the 'using' import outside the namespace


I've ReSharper v9.0 installed on my VS. I also use StyleCop. I've disabled SA1200, so when I put the using statements outside the namespace, I don't get warned again. But when I add a reference via [alt]+[enter], which isn't available in using statements, R# put it inside the namespace. Of course, it is not consistent right, R# should place it outside the namespace.

I've tried to reset R# setting to factory default, it works as I expected. But when I apply StyleCop rules again, this problem happen again. How should I setup this?


Solution

  • Answer from another question:

    UPDATE - Resharper 9: This option is now moved to Code Editing -> C# -> Code Style https://stackoverflow.com/a/825256/67420