Using an object that is in a different namespace
I have an object, lets say BowlingBall, and I want to use it in my new code.
Without Resharper
With Resharper
Without Resharper
- Type the full name of the class 'BowlingBall' in your code block and look for the Visual Studio icon to add an import statement.
- Wonder why it hasn't come up and get frustrated.
- Delve into the solution explorer to try and find the class.
- Finally find the class and see that the person who created it has made an unfortunate typo and that it is actually called BowelingBall - I will leave renaming for another day.
- Curse the idiot who made the typo.
- Return to your original code file and correct the typo.
- Use visual studio to add the relevant import statement.
With Resharper
- Type 'BB' into your code block.
- Press Shift+Alt+Space
- Select from the short list of classes displayed (also including BouncyBall and BreadBoard).
- Laugh at the unfortunate typo and those doing it the manual way.