Reputation: 16200
Does Visual Studio 2010 have a shortcut for quick fix?
I'm tired of grabbing the mouse, hovering over this red line, waiting for the little clipboard icon to appear, clicking on the first menu item. It would be so much fast to just open that dialog with some keys and confirming the first (i.e. selected) item.
Upvotes: 66
Views: 32243
Reputation: 4602
Place your cursor/caret on the underlined item, use Ctrl + . to pop up the intellisence/suggestion context menu.
Upvotes: 17
Reputation: 24324
If you want to edit the shortcut of quick fix you can do the following:
Open Tools->Options->Keyboard
and in the Show commands containing
field enter EditorContextMenus.CodeWindow.QuickActionsForPosition
and replace the old shortcut with the new one.
Upvotes: 2
Reputation: 11787
The feature is called the "Smart Tag".
Default Keyboard Shortcut Schemes (ReSharper documentation)
Stack Overflow question How does one set Visual Studio 2010 keyboard shortcuts comfortably, especially when using ReSharper?
Stack Overflow question Visual Studio keyboard shortcut to automatically add the needed 'using' statement
They can usually be invoked via the keyboard using either:
Upvotes: 65
Reputation: 16200
Alt + Shift + F10 does the trick.
Via @Rohit from Visual Studio keyboard shortcut to automatically add the needed using statement
Upvotes: 2