JetBrains Rider 2024.2 Help

Customize keyboard shortcuts

JetBrains Rider includes several predefined keymaps and lets you customize frequently used shortcuts.

To view the keymap configuration, open the Settings/Preferences dialog Ctrl+Alt+S and select Keymap.

Keymap settings

Among all the predefined keymaps, you will most probably choose one of the following:

  • Visual Studio 2022 — this keymap is recommended for Windows users who have experience with plain Visual Studio without ReSharper.

  • IntelliJ/IntelliJ (macOS) — this keymap is recommended for users who have experience with IntelliJ IDEA or some of the JetBrains IntelliJ-platform-based IDEs and who preferred to use the IntelliJ/macOS keymap there.

  • Visual Studio/Visual Studio (macOS) — this keymap is recommended for users who:

  • VS Code/VS Code (macOS) — this keymap is recommended for users who have experience with Visual Studio Code.

  • ReSharper/ReSharper (macOS) — this keymap is recommended for users who have experience with Visual Studio + ReSharper and who preferred the 'ReSharper 2.x/IntelliJ IDEA' keyboard scheme in ReSharper.

If you are using Rider on macOS, it is recommended to choose a keymap with the macOS suffix, for example Visual Studio (macOS).

A keymap is a list of actions with corresponding keyboard and mouse shortcuts and abbreviations. You cannot change predefined keymaps. Instead, when you modify any shortcut of a predefined keymap, JetBrains Rider creates a copy of that keymap, which you can configure. Click The Show Scheme Actions icon to duplicate the selected keymap, rename, remove, or restore it to default values. For more information about keymap files, refer to Location of user-defined keymaps.

Some actions inherit their keyboard shortcuts or mouse shortcuts from other actions. On the Keymap page, you can navigate to the parent action using the inherited from link. When you change a shortcut of a parent action, all shortcuts of its child actions change accordingly. When you change a shortcut of a child action, it does not affect the shortcuts of its parent action, but the inheritance link is removed making both actions independent.

Shortcut inheritance

To find an action by name, type it in the search field of the Keymap page. 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.

When consulting this page and other pages in JetBrains Rider documentation, you can see keyboard shortcuts for the keymap that you use in the IDE — choose it using the selector at the top of a page.

Keyboard shortcuts selector in the documentation

Add a keyboard shortcut

  1. On the Keymap page of the Settings/Preferences dialog Ctrl+Alt+S, use the search field to find the desired action.

  2. Right-click the action and select Add Keyboard Shortcut.

    Assigning a shortcut to Set Execution Point
  3. In the Keyboard Shortcut dialog, press the necessary key combination.

  4. If necessary, select the Second stroke checkbox to define a complex shortcut with two sequential key combinations.

  5. 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 Settings/Preferences dialog Ctrl+Alt+S, 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 Ctrl+Shift+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 Settings/Preferences dialog Ctrl+Alt+S, 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 Settings/Preferences dialog Ctrl+Alt+S, right-click an action and select Reset Shortcuts.

Disable double-key shortcuts

Do the following to disable the default double-key shortcuts, Double Shift for Search Everywhere and Double Ctrl for Run Anything.

  1. Press Ctrl+Alt+S to open settings and then select Advanced Settings.

  2. Scroll to the User Interface section and set the Disable double modifier key shortcuts checkbox:

    Disabling the double-key shortcuts

In addition to keymaps distributed with JetBrains Rider, you can install other keymaps via plugins, for example Eclipse Keymap or NetBeans Keymap.

Location of user-defined keymaps

When you modify one of the default keymaps, JetBrains Rider creates a custom keymap file in the keymaps directory under the JetBrains Rider IDE configuration directory:

Syntax

%APPDATA%\JetBrains\<product><version>\keymaps

Example

C:\Users\JohnS\AppData\Roaming\JetBrains\Rider2024.2\keymaps

Syntax

~/Library/Application Support/JetBrains/<product><version>/keymaps

Example

~/Library/Application Support/JetBrains/Rider2024.2/keymaps

Syntax

~/.config/JetBrains/<product><version>/keymaps

Example

~/.config/JetBrains/Rider2024.2/keymaps

A custom keymap file contains only the differences relative to its parent keymap. For example, if you modify the default Windows keymap, your custom keymap will be its child. The file will contain only the shortcuts that you added or modified, while all other shortcuts of your custom keymap will be the same as the default Windows keymap.

You can share your custom keymaps with team members or between your IDE instances. Copy the corresponding keymap file and put it in the keymaps directory on another JetBrains Rider installation. Then select the copied keymap on the Keymap settings page.

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.

JetBrains Rider detects conflicts with system shortcuts and notifies you with a popup message:

Notification on conflicting shortcuts

Click Modify Shortcuts to open the Keymap settings dialog where you can make the necessary adjustments:

Adjust conflicting shortcuts

Here are a few examples of possible system shortcut conflicts with the default keymap in JetBrains Rider. Make sure that function keys are enabled on your system.

Shortcut

System action

JetBrains Rider action

⌃ Space

Select the previous input source

Basic code completion

⇧ ⌘ A

Search man Page Index in Terminal

Find Action

Shortcut

System action

JetBrains Rider action

Ctrl+Alt+S

Shade window

Open the Settings dialog

Ctrl+Alt+L

Lock screen

Reformat Code

Ctrl+Alt+T

Launch Terminal

Surround With

Ctrl+Alt+F12

Open the tty12 virtual console

File path

Ctrl+Alt+Left

Ctrl+Alt+Right

Switch between Workspaces

Undo/redo navigation operations

Alt+F7

Move window

Find Usages

Alt+F8

Resize window

Evaluate Expression

Last modified: 11 October 2024