Shortcuts

The Shortcuts options page contains CodeRush shortcut options.

opShortcuts

Shortcuts are listed in tabular fashion. This table details the main information on each shortcut: shortcut (keys combination), action, and context. The table items are grouped into the tree to simplify a search for a shortcut.

The buttons over the table manage the table items:

Button Description
scCreateShortcut Creates a new shortcut.
scCreateMouseShortcut Creates a new mouse shortcut.
scDuplicateShortcut Duplicates the selected shortcut. The button is available if a shortcut is selected.
scNewFolder Creates a new folder.
scRenameFolder Renames the selected folder. The button is available if a folder is selected.
scDelete Deletes the selected folder or shortcut. If you delete a folder, all shortcuts contained in the folder are also deleted.
scShowShortcutFolders If the button is pressed, the shortcuts are shown without folders. Otherwise, folders are shown.
scFindShortcut Opens the Find window used to find the desired shortcut.
scLeftRightAlt Press the button to distinguish left and right ALT keys (does not affect mouse shortcuts).

Keyboard shortcut options

scKeyboardShortcutOptions

 

Key 1

The shortcut keys combination.

 

Key 2

The additional keys combination. If the Key 2 value is not empty, the specified command is executed, if Key 2 is pressed immediately after Key 1.

 

Enabled

Specifies the shortcut availability.

 

Command

Specifies the command that should be executed if the specified keys combination is pressed.

 

Parameters

The parameters of the specified command. If a command has parameters, you can create a shortcut that executes the command with the desired parameter.

For example, if you want to create a shortcut that calls the Add Parameter refactoring, you should assign "Refactor" to the Command option and "Add Parameter" to the Parameter option.

 

After executing this command, pass the shortcut on to the IDE for default handling

Check the option to pass the shortcut to the IDE after the specified command is executed.

Note

If the current shortcut is a two key shortcut, CodeRush does not pass it to the IDE and the option is disabled.

 

The contexts tree

Specifies the shortcut contexts.

Mouse shortcut options

scMouseShortcutOptions

Mouse shortcuts have the following options:

 

CTRL, ALT, and SHIFT buttons.

The shortcut modifier keys.

 

Mouse

Specifies the mouse event that activates the shortcut.

 

Enabled

Specifies the shortcut availability.

 

Command

Specifies the command that should be executed, if the specified keys combination is pressed.

 

Parameters

The parameters of the specified command. If a command has parameters, you can create a shortcut that executes the command with the desired parameter.

For example, if you want to create a shortcut that calls the Add Parameter refactoring, you should assign "Refactor" to the Command option and "Add Parameter" to the Parameter option.

 

After executing this command, pass the shortcut on to the IDE for default handling

Check the option to pass the shortcut to the IDE after the specified command is executed.

 

The contexts tree

Specifies the shortcut contexts.

Folder options

scFolderOptions

If a folder is selected in the shortcut tree, you can uncheck the Enabled option to disable all shortcuts contained in the folder. The Comment option is intended to provide a brief description of the folder.

Shortcuts Search

The scFindShortcut button, situated over the shortcuts table, opens the Find window. This window enables you to search for a folder or a shortcut.

scFindWindow

The window has 4 tabs:

  • Folder - searches for a folder by its name.
  • Key Shortcut - searches for a keyboard shortcut by key combination.
  • Mouse Shortcut - searches for a mouse shortcut by mouse event and key combination.
  • Command - Searches for a shortcut by command.

Click Find to view the first item fulfilling the search condition. The Find Next button shows the next search result.