## Key Mappings

The functions of keys in Understand for C++ can be customized. The default keyboard mappings affect all areas of the software, including the source editor.

For a complete list of the current key mappings, choose the
Help->Keyboard Mappings menu item.

To change or add key bindings:

1. Choose the Options->Preferences menu item and go to the Keyboard tab.
2. Select a menu or category of commands from the Commands list. The categories include various menus and submenus from the menu bar, right-click commands for entities, and printing and non-printing ASCII characters.
3. Select a command name from the list.
4. Press the keystroke you want to map to the selected command. The current function for that keystroke (if any) is shown below the New Event field.
5. Click Add to map that keystroke to the selected command.
6. To remove a keystroke, select it in the Mapped Events list and click Delete.
7. Click Okay when you have finished making changes.

The default keyboard mappings include the following keystrokes that can be used in the Source Code Editor.

Keystroke | Action
--- | ---
Ctrl-c | Copy the selection to the system’s clipboard. Marking with left mouse has this effect on X-Windows systems.
Ctrl-e | Open the Search/Replace dialog.
Ctrl-g | Open the Go To Line dialog.
Ctrl-f | Open the Find dialog (used to find text in the current file).
Ctrl-Shift-F | Find Next occurrence of a previous find.
Ctrl-m | Match brackets (see Bracket Matching).
Ctrl-n | Open a new empty file.
Ctrl-o | Open an existing file (opens file selection dialog).
Ctrl-r | Rebuild the current database by parsing only changed files (and those who depend on the changed files) Equivalent to clicking the Reparse icon of the toolbar.
Ctrl-s | Save file (if modified). Uses current name for the file. Brings up Save As dialog if file is not yet named.
Ctrl-tab | Move between open windows in Windows Multiple Document Interface (MDI) mode.
Ctrl-v | Paste clipboard text at cursor position. If text is currently marked it will replace that marked text with contents of the clipboard.
Ctrl-x | Cut selection into the clipboard.
Ctrl-y | Redo last event that was reversed by Undo
Ctrl-z | Undo last editing event
Ctrl-Insert | Same as Ctrl-c. (copy to clipboard)
Shift-Insert | Same as Ctrl-v (Paste clipboard)
Shift-Delete | Same as Ctrl-x (Cut to clipboard)
Alt-Backspace | Same as Ctrl-z (Undo)
Delete | Delete current selection. Or delete (moving forward) character at the current cursor position
End | Move cursor to end of current line
Ctrl-End | Move cursor to end of file
Home | Move cursor to beginning of first word on line. If no words on line then beginning of line.
Ctrl-Home | Move cursor to beginning of file.
Page Down | Move cursor down one page.
Ctrl-Page Down | Scroll the horizontal scroll right.
Page Up | Move cursor up one page.
Ctrl-Page Up | Scroll the horizontal scroll left.
Left Arrow | Move cursor left one position.
Ctrl-Left Arrow | Jump to beginning of previous word.
Right Arrow | Move cursor right one position.
Ctrl-Right Arrow | Jump cursor to beginning of next word.
Down Arrow | Move cursor down one position, retaining column position if possible.
Ctrl-Down Arrow | Move vertical scroll bar down one position.
Up Arrow | Move cursor up one line, retaining column position if possible.
Ctrl-Up Arrow | Move vertical scroll bar up one position.

Scientific Toolworks, Inc. http://www.scitools.com