Visual Studio shortcut for "quick fix"

Visual StudioVisual Studio-2010Keyboard Shortcuts

Visual 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".

  1. Default Keyboard Shortcut Schemes (ReSharper documentation)

  2. Stack Overflow question https://stackoverflow.com/questions/3725007

  3. Stack Overflow question https://stackoverflow.com/questions/148977

They can usually be invoked via the keyboard using either:

  1. Ctrl+. (on a standard QWERTY keyboard)
  2. 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

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDerMikeView Question on Stackoverflow
Solution 1 - Visual StudioRohit Vipin MathewsView Answer on Stackoverflow
Solution 2 - Visual StudioAlexandreView Answer on Stackoverflow
Solution 3 - Visual StudioDerMikeView Answer on Stackoverflow
Solution 4 - Visual StudioMelchiaView Answer on Stackoverflow