# Keymap

> **TL;DR**
> `File | Settings | Keymap` for Windows and Linux
>
>
>
> `IntelliJ IDEA | Settings | Keymap` for macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) ![the Settings icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.settings.svg)

Use this page to search for shortcuts and actions in the selected [keymap](configuring-keyboard-and-mouse-shortcuts.html), create, edit, and remove custom keymaps, and change shortcuts associated with actions in custom keymaps. [Predefined keymaps](null) are not editable. When you change shortcut associations for a predefined keymap (listed in bold), IntelliJ IDEA creates a copy of that keymap, which you can modify (listed in a regular font with an indent below the parent keymap).

## Keymap scheme actions

Click ![The Show Scheme Actions menu](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.settings.svg) to select an action for the selected keymap:

| Item | Description |
| --- | --- |
| Duplicate |  Create a child keymap based on the selected one. It is created automatically when you modify a predefined keymap.  |
| Rename | Change the name of a custom keymap. |
| Restore Defaults | Abandon all the changes made to a custom keymap and restore the configuration of the parent keymap. |
| Delete | Remove the selected custom keymap from the list. |

## Keymap toolbar

| Item | Tooltip and shortcut | Description |
| --- | --- | --- |
| ![the Expand All button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.expandAll.svg) | Expand All   `Ctrl+NumPad +` (Windows), `⌘ NumPad +` (macOS), `⌘ NumPad +` (IntelliJ IDEA Classic (macOS)), `⌘ NumPad +` (macOS System Shortcuts), `Ctrl+NumPad +` (XWin), `Ctrl+NumPad +` (GNOME), `Ctrl+NumPad +` (KDE), `Ctrl+NumPad +` (Emacs), `Ctrl+NumPad +` (Sublime Text), `⌘ NumPad +` (Sublime Text (macOS)), `Ctrl+NumPad +` (NetBeans), `Ctrl+NumPad +` (Visual Studio), `⌘ NumPad +` (Visual Studio (macOS)), `Ctrl+Shift+NumPad *` (Eclipse), `⌘ ⇧ NumPad *` (Eclipse (macOS))  | Expand all nodes in the content pane of actions. |
| ![the Collapse All button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.collapseAll.svg) | Collapse All   `Ctrl+NumPad -` (Windows), `⌘ NumPad -` (macOS), `⌘ NumPad -` (IntelliJ IDEA Classic (macOS)), `⌘ NumPad -` (macOS System Shortcuts), `Ctrl+NumPad -` (XWin), `Ctrl+NumPad -` (GNOME), `Ctrl+NumPad -` (KDE), `Ctrl+NumPad -` (Emacs), `Ctrl+NumPad -` (Sublime Text), `⌘ NumPad -` (Sublime Text (macOS)), `Ctrl+NumPad -` (NetBeans), `Ctrl+NumPad -` (Visual Studio), `⌘ NumPad -` (Visual Studio (macOS)), `Ctrl+Shift+NumPad /` (Eclipse), `⌘ ⇧ NumPad /` (Eclipse (macOS))  | Collapse all nodes in the content pane of actions. |
| ![the Edit Shortcut icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.edit.svg)  |    Edit Shortcut   `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (NetBeans), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (Eclipse), `⏎` (Eclipse (macOS))  |     Change shortcuts for the selected action. It is possible to add new shortcuts and remove existing ones. Alternatively, you can right-click the necessary action.                           ![Keymap menu](https://resources.jetbrains.com.cn/help/img/idea/2026.2/keymap_menu.png)                                                * Add Keyboard Shortcut: open the Keyboard Shortcut dialog where you can specify the key combination to assign to the selected action in the current keymap. > **Note:** > Pressing some keys or key combinations, such as `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (NetBeans), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (Eclipse), `⏎` (Eclipse (macOS)) or `Escape` (Windows), `⎋` (macOS), `⎋` (IntelliJ IDEA Classic (macOS)), `⎋` (macOS System Shortcuts), `Escape` (XWin), `Escape` (GNOME), `Escape` (KDE), `Escape, Escape` (Emacs), `Escape` (Sublime Text), `⎋` (Sublime Text (macOS)), `Escape` (NetBeans), `Escape` (Visual Studio), `⎋` (Visual Studio (macOS)), `Escape` (Eclipse), `⎋` (Eclipse (macOS)), will result in the actual action, such as closing the dialog. If you want to use them as shortcuts, click ![The Set shortcuts with special keys icon](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.add.svg) in the Keyboard Shortcut dialog and select the necessary key or combination.    * Add Mouse Shortcut: open the Mouse Shortcut dialog where you can specify the combination of mouse clicks to assign to the selected action in the current keymap.    * Remove <shortcut>: delete the shortcut from the selected action.    |
| ![The Show conflicts with system shortcuts button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.general.showWarning.svg) | Show conflicts with system shortcuts |  List only those shortcuts that conflict with system hotkeys. Change them to avoid conflicts. Or you can change the corresponding system shortcuts (if possible).     > **Note:** > This item is available only on macOS.    |
|  ![Search field](https://resources.jetbrains.com.cn/help/img/idea/2026.2/search_field.png)   |  | Search through the content pane of actions. As you type a search string, the actions that match the search pattern are displayed.     The previously used search patterns are stored in the search history list. To add the search string to the history list, press `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (NetBeans), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (Eclipse), `⏎` (Eclipse (macOS)).     Click ![Find](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.toolwindow.find.svg) to reveal the history list of the previous searches.     Click ![the Clear button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.closeSmall.svg) to clear the current search pattern from the field.    |
| ![the Find Action by Shortcut button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.actions.shortcutFilter.svg)  | Find Action by Shortcut | Click this button to open the Find Shortcut dialog to filter out the desired actions by keystrokes.    For more information about specifying keyboard shortcuts, refer to [Configure keyboard shortcuts](configuring-keyboard-and-mouse-shortcuts.html).    The actions with shortcuts that match the specified criteria are shown in the content pane of actions.    |
| ![the Clear Filtering button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.closeSmall.svg) | Clear Filtering | Click this button to restore the initial list of actions in the content pane. |

## Other options

| Option | Description |
| --- | --- |
| Show F1, F2, etc. keys on the Touch Bar |  The option is available only on Apple MacBook Pro models with a Touch Bar. It is disabled by default, so you have to hold down the `Fn` key to see function keys. Enable it to always show function keys on the Touch Bar instead of controls specific to IntelliJ IDEA. For more information, refer to [Touch bar support](touch-bar-support.html).  |
| Use national layout for shortcuts |  The option is available only when using a non-English Latin keyboard layout and when the [Keymap Nationalizer](https://plugins.jetbrains.com/plugin/14625-keymap-nationalizer) plugin is [installed](managing-plugins.html#install_plugin_from_repo). On macOS and Windows, it is enabled by default, and all characters are interpreted as determined by the layout. For Windows, this behavior is hard-coded, and you can't disable it. On Linux, it is disabled by default, and keys with special characters are interpreted as if you were using an English keyboard layout. For example, pressing the minus key `-` on a German keyboard will produce a forward slash `/`, so to execute `Alt + /` on a German keyboard, press `Alt + -`.  |
| Use US non-alphanumeric keys for shortcuts |  The option is available on Windows when using a Cyrillic layout. It is disabled by default. Enable it to map IDE actions to OEM keyboard characters as if it were an English keyboard layout.  |

## How it works

* [IntelliJ IDEA keyboard shortcuts](mastering-keyboard-shortcuts.html)

* [Configure keyboard shortcuts](configuring-keyboard-and-mouse-shortcuts.html)

* [Troubleshooting problems with keyboard shortcuts](keyboard-shortcuts-troubleshooting.html)

