Search code examples
visual-studiovisual-studio-2010keyboard-shortcuts

Visual Studio shortcut for "quick fix"


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.


Solution

  • The feature is called the "Smart Tag".

    1. Default Keyboard Shortcut Schemes (ReSharper documentation)

    2. Stack Overflow question How does one set Visual Studio 2010 keyboard shortcuts comfortably, especially when using ReSharper?

    3. Stack Overflow question Visual Studio keyboard shortcut to automatically add the needed 'using' statement

    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)