Export (0) Print
Expand All

Keyboard, Environment, Options Dialog Box

Visual Studio .NET 2003

The Keyboard page of the Options dialog box allows you to customize the keyboard scheme for the integrated development environment (IDE). Use this option to set shortcut keys for frequently used commands or to establish your favorite binding for a particular command. You can also choose existing keyboard schemes from previous versions of Visual Studio. To access this dialog box, select Options from the Tools menu and choosing the Keyboard page from the Environment folder.

Tip   Enter a key combination in the Press shortcut key(s) textbox to check the key combination for an existing command mapping. For example, File.SaveAll (Ctrl+S (Global)) displays in the Shortcut currently used by list when you enter Ctrl+S in the Press shortcut key(s) textbox
Keyboard mapping scheme
Lists the set of all available collections of shortcut keys. To load a specific scheme, select it from the list. When you are ready to leave the options dialog box, click OK your selected scheme will be loaded into the IDE. You can create your own by using Save As.

Clicking OK in the Options dialog box saves all Options settings, including settings made on other pages.

Save As
Displays the Save Scheme dialog box, where you can enter a name of the new keyboard-mapping scheme to save. When you click OK on the Save Scheme dialog box, a new entry is added to the Keyboard Mapping Scheme list above. If a scheme with the name specified already exists, you are prompted to replace it.

Scheme names cannot contain the following characters:

  • Pound (#)
  • Percent (%)
  • Ampersand (&)
  • Asterisk (*)
  • Vertical bar (|)
  • Backslash (\)
  • Colon (:)
  • Double quotation mark (")
  • Less than (<)
  • Greater than (>)
  • Question mark (?)
  • Forward slash (/)
  • Leading or trailing spaces (' ') [removed from the name entered]
  • Names reserved for Windows or DOS ("nul", "aux", "con", "com1", "lpt1",
    and so on)
Delete
Deletes the selected keyboard scheme. You cannot delete any of the default keyboard schemes.
Show commands containing
Specifies which command is selected and shows a list of all commands available in the integrated development environment (IDE) that contain the specified characters, or all commands if this edit box is empty. As you type a complete word, the result list displays all entries containing the typed word. For example, you can enter save, locate the command, File.SaveSelectedItems, and see that the associated shortcut is Ctrl+S.
Shortcut(s) for selected command
Lists mapped shortcuts for the command selected in the Show commands containing list. Some commands have more than one mapped shortcut.
Remove
Removes the selected shortcut key combination.
Use new shortcut in
Specifies the scope of the shortcut key. For example, you can use the shortcut key globally in the IDE or only within a specific context (or window); Global is the default setting. If you choose a specific context, the shortcut key remains in effect only while the context is active. If you choose Global, the shortcut key works in any active window in the IDE, unless the same shortcut is mapped in another editor, in which case the editor overrides the shortcut.
Press shortcut key(s)
Allows you to press a key combination to be used for the currently selected command. You must use one or more modifier keys such as CTRL, ALT, or SHIFT. The modifier keys appear in the order in which you press them. For example, pressing CRTL, then SHIFT, and then F2 creates the shortcut key, CTRL+SHIFT+F2. You can enter one or two key combinations that include a modifier key. For example, you can enter CTRL+Y, or enter CTRL+Y, CTRL+W. Use BACKSPACE to delete the whole shortcut key combination at one time.
Note   The following keys cannot be assigned: ALT, SHIFT, or CTRL without another key; ESC, PRINT SCRN/SYS RQ, SCROLL LOCK, PAUSE/BREAK, TAB, CAPS LOCK, INSERT, HOME, END, PAGE UP, PAGE DOWN, Windows logo keys, Application key, any of the ARROW keys, or ENTER; NUM LOCK, DEL, or CLEAR on the numeric keypad; or CTRL+ALT+DELETE.
Assign
Binds the new key combination to the selected command in the Keyboard mapping scheme displayed. The new assignment is added to the Shortcut(s) for selected command list and you can specify multiple key combinations for one command. This button is active after you type a key combination in the Press shortcut key(s) box. If you attempt to bind a key in the [Default Settings] scheme, you are prompted to make a copy of the scheme and give it a name.
Note   Changes made using the Assign button are not cancelled if you click the Cancel button.
Shortcut currently used by
Displays the command to which the key combination is currently assigned. Appears only when you assign a key or key combination that is already assigned. To replace the shortcut with a custom shortcut key combination you must define a new Keyboard mapping scheme.

See Also

Environment, Options Dialog Box | Customizing Shortcut Keys | Default Settings Shortcut Keys | Visual Studio 6.0 Default Shortcut Keys | Visual Studio Commands

Show:
© 2014 Microsoft