AppCode 2019.3 Help

Configure keyboard shortcuts

AppCode includes predefined keymaps and lets you customize frequently used shortcuts.

To view the keymap configuration, open the Preferences dialog ⌘, and select Keymap.

Keymap settings

AppCode automatically selects a predefined keymap based on your environment. Make sure that it matches the OS version you are using or select the one that matches shortcuts from another IDE or editor you are used to (for example, Xcode).

You cannot customize predefined keymaps. When you modify any shortcut, AppCode creates a copy of the currently selected keymap, which you can configure. Click The Show Scheme Actions icon to duplicate the selected keymap, rename, remove, or restore it to default values.

The keymap itself is a list of actions with corresponding keyboard and mouse shortcuts, and abbreviations. To find an action by name, type it in the search field. If you know the shortcut of an action, click The Find Action by Shortcut icon and press the key combination in the Find Shortcut dialog.

Add a keyboard shortcut

  1. On the Keymap page of the Preferences dialog ⌘,, right-click an action and select Add Keyboard Shortcut.

  2. In the Keyboard Shortcut dialog, press the necessary key combination.

  3. (Optional) Select the Second Stroke checkbox to define a complex shortcut with two sequential key combinations.

  4. Click OK to save the shortcut.

The key combination that you press is displayed in the Keyboard Shortcut dialog, as well as a warning if it conflicts with existing shortcuts.

Add a mouse shortcut

  1. On the Keymap page of the Preferences dialog ⌘,, right-click an action and select Add Mouse Shortcut.

  2. In the Mouse Shortcut dialog, move the mouse pointer to the central area and click or scroll as necessary.

  3. Click OK to save the shortcut.

The performed mouse manipulations are displayed in the Mouse Shortcut dialog, as well as a warning if it conflicts with existing shortcuts.

Add an abbreviation

An abbreviation can be used to quickly find an action without a shortcut. For example, you can press ⇧⌘A and type the name of the Jump to Colors and Fonts action to quickly modify the color and font settings of the element under the current caret position. If you assign an abbreviation for this action (like JCF), you can then type it instead of the full action name.

  1. On the Keymap page of the Preferences dialog ⌘,, right-click an action and select Add Abbreviation.

  2. In the Abbreviation dialog, type the desired abbreviation and click OK.

Reset action shortcuts to default

If you changed, added, or removed a shortcut for an action, you can reset it to the initial configuration.

  • On the Keymap page of the Preferences dialog ⌘,, right-click an action and select Reset Shortcuts.

Location of user-defined keymaps

All user-defined keymaps are stored in separate configuration files under the keymaps subdirectory in the AppCode configuration directory:

Syntax
~/Library/Preferences/<product><version>/keymaps
Example
~/Library/Preferences/AppCode2019.3/keymaps

Each keymap file contains only the differences relative to the parent keymap.

You can use these files to share your custom keymaps with team members. To export your keymap, copy the corresponding file, and then import it by placing it in the keymaps directory on another AppCode installation.

Conflicts with global OS shortcuts

Predefined keymaps do not cover every possible platform, version, and configuration. Some shortcuts can conflict with global system actions and shortcuts for third-party software. To fix these conflicts, you can reassign or disable the conflicting shortcut.

Try out the key combinations that you use and make necessary adjustments. Also, make sure that function keys are enabled on your system and check the following default shortcuts:

Shortcut

System action

AppCode action

⌃Space

Select the previous input source

Basic code completion

⇧⌘A

Search man Page Index in Terminal

Find Action

⌘+Click and drag

Right-click

Copy and drag selected text

Last modified: 4 December 2019