13

I was wondering if there is some option to keep ReSharper from removing just the using System; directive? Perhaps this is configurable somewhere?

Also, is there a way to have ReSharper sort the remaining directives just as Visual Studio 2008 does it (alphabetically, I think)?

Thanks.

Igal Tabachnik
  • 31,174
  • 15
  • 92
  • 157

2 Answers2

17

Yes, there is such an option: ReSharper->Languages->C#->Namespace Imports. You can add namespaces,that should not be removed, as well as namespaces, that should always be imported.

Prensen
  • 850
  • 7
  • 12
5

Yes, in the options (Resharper > Options > Languages > C#), there is a Namespace Imports section that allows you to specify namespaces that should never be removed. You would put System into the prompt it gives.

Garry Shutler
  • 32,260
  • 12
  • 84
  • 119