Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I accept a ReSharper namespace import suggestion using my keyboard?

When coding, I often type a declaration with a type name from a namespace not yet imported with a using statement. ReShaper then pops up a little tooltip suggesting a namespace for which to automatically add a using. However, I always have to leave off typing and use my mouse to accept this. How can I do this using only the keyboard?

like image 857
ProfK Avatar asked Jan 11 '12 13:01

ProfK


1 Answers

Alt + Enter whilst the caret is on the type you are trying to use. But it does depend on the schema you are tying to use or if the short cut has been customized.

Here are the short cut keys for Visual Studio and IDEA: http://www.jetbrains.com/resharper/webhelp/Reference__Keyboard_Shortcuts.html

Here is also a nice pdf print out for the Visual Studio schema (6.0) http://www.jetbrains.com/resharper/docs/ReSharper60DefaultKeymap_VS_scheme.pdf

like image 145
Bronumski Avatar answered Dec 03 '22 14:12

Bronumski