Visual Studio shortcut for "quick fix"
Visual StudioVisual Studio-2010Keyboard ShortcutsVisual Studio Problem Overview
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.
Visual Studio Solutions
Solution 1 - Visual Studio
The feature is called the "Smart Tag".
-
Default Keyboard Shortcut Schemes (ReSharper documentation)
-
Stack Overflow question https://stackoverflow.com/questions/3725007
-
Stack Overflow question https://stackoverflow.com/questions/148977
They can usually be invoked via the keyboard using either:
- Ctrl+. (on a standard QWERTY keyboard)
- Alt+Shift+F10 (if you've not got Function Lock enabled)
Solution 2 - Visual Studio
If your cursor is on the item that is underlined, you can use Ctrl + . to pop up the intellisence/suggestion context menu.
Solution 3 - Visual Studio
Alt + Shift + F10 does the trick.
Via @Rohit from Visual Studio keyboard shortcut to automatically add the needed using statement
Solution 4 - Visual Studio
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.