I have been using ReSharper for quite a long time and get used to solve a lot of problems by typing Alt+Enter. One of my colleague asked me about the real benefits and I couldn't say a word apart from that if you are not using it why import it.
Can someone explain what are the real benefits of removing redundant imports if there are eany?
Beside the fact that it cleans up your code, you can also minimize 'name clashes'.
For instance, when you have 2 types with the same name in different namespaces, and you do not use any type from one namespace ... You then do not have to specify the namespace of the type when using it, it keeps your code cleaner.
It removes redundancy, which is a good thing. And its easy to get most of the needed using directives back, by pressing ALT+ENTER (with R#) or invoking the smart-tag by pressing CTRL+. (without R#) on the class that needs it.
On the negative side, you might lose sight of available extension methods, especially when the System.Linq
namespace import is removed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With