Keyboard, Environment, Options Dialog Box

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. 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.

Note   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.

Note   If a scheme with the name specified already exists, you will be prompted to replace it.

Delete

Deletes the selected keyboard scheme.

Note   You cannot delete any of the default keyboard schemes.

Show commands containing

Lists 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.

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

Allows you use the new 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 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

Assigns a new key combination to the selected command for the Keyboard mapping scheme displayed. The new assignment is added to the Shortcut(s) for selected command list, so it is possible to have multiple key combinations for one command. This button is not active until 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.