

:::image type="content" source="media/tools-options-environment-keyboard.png" alt-text="Screenshot of Environment options in Visual Studio with the Keyboard option selected."::: Identify a keyboard shortcutĮxpand Environment, and then choose Keyboard. This page is based on the General development settings profile. Your settings and edition of Visual Studio might change the names and locations of menu commands and the options that appear in dialog boxes. For a complete list of all default shortcuts, see Global shortcuts. If you use such a shortcut when you're in the specific context, the shortcut invokes the command for the specific context, not the Global context. But a shortcut can be assigned to one command in the Global context and a different command in a specific context. If a shortcut is assigned to a command in the Global context and no other contexts, that shortcut will always invoke that command. For a complete list of all the shortcuts and their commands, see Keyboard shortcuts in Visual Studio. You can also look up the default keyboard shortcuts for several dozen commands in Popular keyboard shortcuts. Regardless of settings, customization, and context, you can always find and change a keyboard shortcut in the Options dialog box. For example, the F2 shortcut invokes the Edit.EditCell command if you're using the Settings Designer, and it invokes the File.Rename command if you're using Solution Explorer.

Which context you're in when you choose the shortcut. Whether you've customized the shortcut's behavior. (For more information about changing or resetting your settings, see Environment settings.) Which default environment settings you choose the first time that you open Visual Studio-for example, General development or Visual C#. Many shortcuts always invoke the same commands, but the behavior of a shortcut might vary based on the following conditions: You can identify keyboard shortcuts for Visual Studio commands, customize those shortcuts, and export them for others to use.

Identify and customize keyboard shortcuts in Visual Studio
