KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
When using ReSharper to move/update namespace declarations, is there a way to stop ReSharper from removing unused Using statements? In other words, if I have a class such as: using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Text; namespace Foo.Bar { class MyClass { List<string> Names { get; set; } } } And I want to move it into the Foo.Bar.Utilities namespace using ReSharper, Resharper will remove all the unused Using statements and leave me with: using System.Collections.Generic; namespace Foo.Bar.Utilities { class MyClass { List<string> Names { get; set; } } } However, I do not want ReSharper to touch my Using statements while moving the namespace declaration. I'd prefer to have the result as: using System.Collections.Generic; using System.Linq; using System.ServiceModel; using System.Text; namespace Foo.Bar.Utilities { class MyClass { List<string> Names { get; set; } } }
Tags (comma-separated)
Save Edits
Cancel