[DevExpress Support Team: CLONED FROM T441666: Issues with CodeRush for Roslyn]
I have the following issues / questions / requests. Sorry if they've already been asked; it's basically impossible to determine what keywords to search by.
* Remove unnecessary namespace ("simplify namespace") - won't do all in current class: request addition of this feature.
Thanks!
Brad,
I am not sure I completely understand which feature you are referring to.
CodeRush for Roslyn has the "Optimize Namespace References" feature. Are you referring to some issue in its implementation?
It would be very helpful if you could give us more information on this issue.
I was referring to multiple unnecessary fully qualified namespace references. Just repro'd now with 2 instances of System.IO.File.Exists in the same class. Interestingly, there is no way to add System.IO to using with the caret in front of one of them (as classic would do). So I manually added the System.IO namespace. Now my refactoring at that point is "Simplify member access to." That works for only one of the instances of this fully qualified namespace; when I execute it, the other instance remains. Classic will have an option to change them all.
Brad,
Thank you for the clarification.
According to your notes, you are referring to the "Remove Type Qualifier" and "Remove Type Qualifier (replace all)" features.
I agree with you that they are very useful, and we are working on adding them. I hope that they will be available in the next update.
Brad,
We have recently released a new CodeRush for Roslyn 16.1.8 version that includes the "Remove Type Qualifier" refactoring.
It would be great if you can try it out and share your feedback with us. Please refer to the what's new list for more details.
Works as expected; thanks!
Brad,
I am happy to hear that it works for you well.