Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Have ReSharper keep 'using System;' when optimizing usings

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.

like image 374
Igal Tabachnik Avatar asked Dec 10 '08 13:12

Igal Tabachnik


1 Answers

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.

like image 99
Prensen Avatar answered Oct 10 '22 01:10

Prensen