Visual-studio – Visual Studio keyboard shortcut to automatically add the needed ‘using’ statement

keyboard shortcutsvisual studiovisual-studio-2008

What is the keyboard shortcut to expand the little red line that gives you the menu where you can choose to have the necessary using statement added to the top of the file?

Best Answer

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