Search code examples
visual-studiokeyboard-shortcuts

Visual Studio keyboard-shortcut for automatically adding the 'using' statement


What is the keyboard-shortcut that expands the menu, from the little red line, and offers the option to have the necessary using statement appended to the top of the file?


Solution

  • Ctrl + . shows the menu. I find this easier to type than the alternative, Alt + Shift + F10.

    This can be re-bound to something more familiar by going to Tools > Options > Environment > Keyboard > Visual C# > View.QuickActions