Tip 0.0: How to Look Up, Change, or Create Visual Studio Keyboard Shortcuts

What Will This Keyboard Shortcut Do?

To find out what command a keyboard shortcut is bound to:

  1. Go to the Tools–Options dialog box and navigate to the Environment–Keyboard page.

  2. In the Press Shortcut Keys edit box, press the keyboard shortcut you are inquiring about.

The Shortcuts For Selected Command combo box displays the associated command(s). If there are no commands associated with the keybinding, the combo box is empty. Please be sure to drop down the list if there are multiple commands associated with that command.

What Will This Keyboard Shortcut Do?

What Is the Keyboard Shortcut for This Command?

To view a keyboard shortcut for a given command:

  1. Go to the Tools–Options dialog box and navigate to the Environment–Keyboard page.

  2. Type the command name in the Show Commands Containing edit box or select the command from the list box.

The Shortcuts For Selected Command combo box will display the keyboard shortcut, if it exists.

What Is the Keyboard Shortcut for This Command?

How to Create or Change a Keyboard Shortcut

To change or create a keyboard shortcut for a given command:

  1. Go to the Tools–Options dialog box and navigate to the Environment–Keyboard page.

  2. Type the command name in the Show Commands Containing edit box or select the command from the list box.

  3. In the Press Shortcut Keys edit box, press the keyboard shortcut you want to associate with the currently selected command. The Press Shortcut Keys edit box will display the keybinding you pressed for your confirmation.

  4. Click Assign.

If there’s a conflict, the Shortcut Currently Used By combo box will show the conflict. Click Assign to override the conflict.

How to Create or Change a Keyboard Shortcut

Note that there are different scopes. The Use New Shortcut In combo box shows the current scope for a given keyboard shortcut. For example, keyboard shortcuts assigned in the Text Editor scope will work only when focus is in the editor, regardless of whether you are editing a plain text file or a C# file. If there’s ever a conflict between a keyboard shortcut in the global scope and any other scope, the more specific scope wins, and that command executes.

Where Are the Keyboard Shortcut Reference Posters?

The Visual Studio team provides some keyboard shortcut reference posters, which are based on the standard U.S. English keyboard layout as shown at http://www.microsoft.com/globaldev/keyboards/kbdus.htm.

Note this book explores many of the less-commonly known aspects of the IDE. So it is still a good idea to be familiar with Tip 0.0: How to Look Up, Change, or Create Visual Studio Keyboard Shortcuts, in the case that these posters don’t cover a specific command or keyboard shortcut.

Keyboard Shortcut Reference Posters for Visual Studio:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.103.154