# Keyboard shortcuts

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com.cn/en-us/help/go/llms.txt).

> **TL;DR**
> `File | Settings | Keymap` for Windows and Linux
>
>
>
> `GoLand | 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+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) ![the Settings icon](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.settings.svg)

GoLand includes [several predefined keymaps](null) and lets you customize frequently used shortcuts.

To view the keymap configuration, open the Settings dialog `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+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) and select Keymap.

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

Emacs or Sublime  ).

> **Note:**
> On macOS, the default keymap is macOS. There is also IntelliJ IDEA Classic, which is a legacy keymap that resembles the default keymap for Windows. Another keymap specific to macOS is macOS System Shortcuts, which is specifically designed to avoid conflicts with macOS shortcuts.

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, GoLand creates a copy of that keymap, which you can configure. Click ![The Show Scheme Actions icon](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.settings.svg) 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](#custom_keymap_location).

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](https://resources.jetbrains.com.cn/help/img/idea/2026.3/inherited_shortcuts.png)

To find an action by name, type it in the search field of the Keymap page. You can also search for double-modifier shortcuts, such as double `Shift` (Windows), `Shift` (macOS), `Shift` (IntelliJ IDEA Classic (macOS)), `Shift` (macOS System Shortcuts), `Shift` (XWin), `Shift` (GNOME), `Shift` (KDE), `Shift` (Emacs), `Shift` (Sublime Text), `Shift` (Sublime Text (macOS)), `Shift` (VSCode), `Shift` (VSCode (macOS)) for [Search everywhere](searching-everywhere.html) and double `Ctrl` (Windows), `Ctrl` (macOS), `Ctrl` (IntelliJ IDEA Classic (macOS)), `Ctrl` (macOS System Shortcuts), `Ctrl` (XWin), `Ctrl` (GNOME), `Ctrl` (KDE), `Ctrl` (Emacs), `Ctrl` (Sublime Text), `Ctrl` (Sublime Text (macOS)), `Ctrl` (VSCode), `Ctrl` (VSCode (macOS)) for [Run Anything](running-anything.html). If you know the shortcut of an action, click ![The Find Action by Shortcut icon](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.actions.searchWithHistory.svg) and press the key combination in the Find Shortcut dialog.

When consulting this page and other pages in GoLand 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.

> **Tip:**
> To view the keymap reference as PDF, select Help | Keyboard Shortcuts PDF from the main menu.

Procedure: Add a keyboard shortcut

1. On the Keymap page of the Settings dialog `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+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)), use the search field to find the action you need.

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

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

Shortcuts can start with a modifier key, such as `Ctrl` (Windows), `Ctrl` (macOS), `Ctrl` (IntelliJ IDEA Classic (macOS)), `Ctrl` (macOS System Shortcuts), `Ctrl` (XWin), `Ctrl` (GNOME), `Ctrl` (KDE), `Ctrl` (Emacs), `Ctrl` (Sublime Text), `Ctrl` (Sublime Text (macOS)), `Ctrl` (VSCode), `Ctrl` (VSCode (macOS)), `Ctrl` (Windows), `Ctrl` (macOS), `Ctrl` (IntelliJ IDEA Classic (macOS)), `Ctrl` (macOS System Shortcuts), `Ctrl` (XWin), `Ctrl` (GNOME), `Ctrl` (KDE), `Ctrl` (Emacs), `Ctrl` (Sublime Text), `Ctrl` (Sublime Text (macOS)), `Ctrl` (VSCode), `Ctrl` (VSCode (macOS)), `Shift` (Windows), `Shift` (macOS), `Shift` (IntelliJ IDEA Classic (macOS)), `Shift` (macOS System Shortcuts), `Shift` (XWin), `Shift` (GNOME), `Shift` (KDE), `Shift` (Emacs), `Shift` (Sublime Text), `Shift` (Sublime Text (macOS)), `Shift` (VSCode), `Shift` (VSCode (macOS)), `Alt` (Windows), `Alt` (macOS), `Alt` (IntelliJ IDEA Classic (macOS)), `Alt` (macOS System Shortcuts), `Alt` (XWin), `Alt` (GNOME), `Alt` (KDE), `Alt` (Emacs), `Alt` (Sublime Text), `Alt` (Sublime Text (macOS)), `Alt` (VSCode), `Alt` (VSCode (macOS)), or the Meta key. They cannot begin with the `Fn` key as it is reserved for hardware functions and is not supported as a shortcut starter.

> **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` (VSCode), `⏎` (VSCode (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` (VSCode), `⎋` (VSCode (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.3/app.expui.general.add.svg) in the Keyboard Shortcut dialog and select the necessary key or 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.

Procedure: Add a mouse shortcut

1. On the Keymap page of the Settings dialog `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+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)), 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.

Procedure: Add an abbreviation

An abbreviation can be used to quickly find an action without a shortcut. For example, you can press `Ctrl+Shift+A` (Windows), `⌘ ⇧ A` (macOS), `⌘ ⇧ A` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ P` (macOS System Shortcuts), `Ctrl+Shift+A` (XWin), `Ctrl+Shift+A` (GNOME), `Ctrl+Shift+A` (KDE), `Escape, X` (Emacs), `Ctrl+Shift+P` (Sublime Text), `⌘ ⇧ P` (Sublime Text (macOS)), `Ctrl+Shift+P` (VSCode), `F1` (VSCode (macOS)) 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 dialog `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+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)), right-click an action and select Add Abbreviation.

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

Procedure: 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 dialog `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+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)), right-click an action and select Reset Shortcuts.

## Customize double-modifier shortcuts

You can customize double-modifier shortcuts on the Keymap page. These shortcuts include double `Shift` (Windows), `Shift` (macOS), `Shift` (IntelliJ IDEA Classic (macOS)), `Shift` (macOS System Shortcuts), `Shift` (XWin), `Shift` (GNOME), `Shift` (KDE), `Shift` (Emacs), `Shift` (Sublime Text), `Shift` (Sublime Text (macOS)), `Shift` (VSCode), `Shift` (VSCode (macOS)) for [Search everywhere](searching-everywhere.html) and double `Ctrl` (Windows), `Ctrl` (macOS), `Ctrl` (IntelliJ IDEA Classic (macOS)), `Ctrl` (macOS System Shortcuts), `Ctrl` (XWin), `Ctrl` (GNOME), `Ctrl` (KDE), `Ctrl` (Emacs), `Ctrl` (Sublime Text), `Ctrl` (Sublime Text (macOS)), `Ctrl` (VSCode), `Ctrl` (VSCode (macOS)) for [Run Anything](running-anything.html).

Procedure: Change double-modifier shortcuts

1. Press `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+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) to open settings and then select `Keymap`.

2. Search for the action whose shortcut you want to change.

3. Right-click the action and add, remove, or reset its shortcut.

Procedure: Disable double-modifier shortcuts

1. Press `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+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) 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](https://resources.jetbrains.com.cn/help/img/idea/2026.3/cl_doublekey_shourtcuts_disable.png)

## Location of user-defined keymaps

When you modify one of the default keymaps, GoLand creates a custom keymap file in the `keymaps` directory under the GoLand [IDE configuration directory](directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory):

Windows:

Syntax
: `%APPDATA%\JetBrains\<product><version>\keymaps`

Example
: `C:\Users\JohnS\AppData\Roaming\JetBrains\GoLand2026.3\keymaps`

macOS:

Syntax
: `~/Library/Application Support/JetBrains/<product><version>/keymaps`

Example
: `~/Library/Application Support/JetBrains/GoLand2026.3/keymaps`

Linux:

Syntax
: `~/.config/JetBrains/<product><version>/keymaps`

Example
: `~/.config/JetBrains/GoLand2026.3/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 GoLand 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.

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

![Notification on conflicting shortcuts](https://resources.jetbrains.com.cn/help/img/idea/2026.3/keymap_conflicts_message.png)

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

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

macOS:

| Shortcut | System action | GoLand action |
| --- | --- | --- |
| `⌃ Space` (Windows), `⌃ Space` (macOS), `⌃ Space` (IntelliJ IDEA Classic (macOS)), `⌃ Space` (macOS System Shortcuts), `⌃ Space` (XWin), `⌃ Space` (GNOME), `⌃ Space` (KDE), `⌃ Space` (Emacs), `⌃ Space` (Sublime Text), `⌃ Space` (Sublime Text (macOS)), `⌃ Space` (VSCode), `⌃ Space` (VSCode (macOS)) | Select the previous input source | Basic code completion |
| `⇧ ⌘ A` (Windows), `⇧ ⌘ A` (macOS), `⇧ ⌘ A` (IntelliJ IDEA Classic (macOS)), `⇧ ⌘ A` (macOS System Shortcuts), `⇧ ⌘ A` (XWin), `⇧ ⌘ A` (GNOME), `⇧ ⌘ A` (KDE), `⇧ ⌘ A` (Emacs), `⇧ ⌘ A` (Sublime Text), `⇧ ⌘ A` (Sublime Text (macOS)), `⇧ ⌘ A` (VSCode), `⇧ ⌘ A` (VSCode (macOS)) | Search man Page Index in Terminal | Find Action |

Ubuntu:

| Shortcut | System action | GoLand action |
| --- | --- | --- |
|  `Ctrl+Alt+S` (Windows), `Ctrl+Alt+S` (macOS), `Ctrl+Alt+S` (IntelliJ IDEA Classic (macOS)), `Ctrl+Alt+S` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `Ctrl+Alt+S` (Sublime Text (macOS)), `Ctrl+Alt+S` (VSCode), `Ctrl+Alt+S` (VSCode (macOS))  | Shade window | Open the Settings dialog |
|  `Ctrl+Alt+L` (Windows), `Ctrl+Alt+L` (macOS), `Ctrl+Alt+L` (IntelliJ IDEA Classic (macOS)), `Ctrl+Alt+L` (macOS System Shortcuts), `Ctrl+Alt+L` (XWin), `Ctrl+Alt+L` (GNOME), `Ctrl+Alt+L` (KDE), `Ctrl+Alt+L` (Emacs), `Ctrl+Alt+L` (Sublime Text), `Ctrl+Alt+L` (Sublime Text (macOS)), `Ctrl+Alt+L` (VSCode), `Ctrl+Alt+L` (VSCode (macOS))  | Lock screen | Reformat Code |
|  `Ctrl+Alt+T` (Windows), `Ctrl+Alt+T` (macOS), `Ctrl+Alt+T` (IntelliJ IDEA Classic (macOS)), `Ctrl+Alt+T` (macOS System Shortcuts), `Ctrl+Alt+T` (XWin), `Ctrl+Alt+T` (GNOME), `Ctrl+Alt+T` (KDE), `Ctrl+Alt+T` (Emacs), `Ctrl+Alt+T` (Sublime Text), `Ctrl+Alt+T` (Sublime Text (macOS)), `Ctrl+Alt+T` (VSCode), `Ctrl+Alt+T` (VSCode (macOS))  | Launch Terminal | Surround With |
|  `Ctrl+Alt+F12` (Windows), `Ctrl+Alt+F12` (macOS), `Ctrl+Alt+F12` (IntelliJ IDEA Classic (macOS)), `Ctrl+Alt+F12` (macOS System Shortcuts), `Ctrl+Alt+F12` (XWin), `Ctrl+Alt+F12` (GNOME), `Ctrl+Alt+F12` (KDE), `Ctrl+Alt+F12` (Emacs), `Ctrl+Alt+F12` (Sublime Text), `Ctrl+Alt+F12` (Sublime Text (macOS)), `Ctrl+Alt+F12` (VSCode), `Ctrl+Alt+F12` (VSCode (macOS))  | Open the tty12 virtual console  | File path |
|     `Ctrl+Alt+Left` (Windows), `Ctrl+Alt+Left` (macOS), `Ctrl+Alt+Left` (IntelliJ IDEA Classic (macOS)), `Ctrl+Alt+Left` (macOS System Shortcuts), `Ctrl+Alt+Left` (XWin), `Ctrl+Alt+Left` (GNOME), `Ctrl+Alt+Left` (KDE), `Ctrl+Alt+Left` (Emacs), `Ctrl+Alt+Left` (Sublime Text), `Ctrl+Alt+Left` (Sublime Text (macOS)), `Ctrl+Alt+Left` (VSCode), `Ctrl+Alt+Left` (VSCode (macOS))       `Ctrl+Alt+Right` (Windows), `Ctrl+Alt+Right` (macOS), `Ctrl+Alt+Right` (IntelliJ IDEA Classic (macOS)), `Ctrl+Alt+Right` (macOS System Shortcuts), `Ctrl+Alt+Right` (XWin), `Ctrl+Alt+Right` (GNOME), `Ctrl+Alt+Right` (KDE), `Ctrl+Alt+Right` (Emacs), `Ctrl+Alt+Right` (Sublime Text), `Ctrl+Alt+Right` (Sublime Text (macOS)), `Ctrl+Alt+Right` (VSCode), `Ctrl+Alt+Right` (VSCode (macOS))     | Switch between Workspaces | Undo/redo navigation operations |
|  `Alt+F7` (Windows), `Alt+F7` (macOS), `Alt+F7` (IntelliJ IDEA Classic (macOS)), `Alt+F7` (macOS System Shortcuts), `Alt+F7` (XWin), `Alt+F7` (GNOME), `Alt+F7` (KDE), `Alt+F7` (Emacs), `Alt+F7` (Sublime Text), `Alt+F7` (Sublime Text (macOS)), `Alt+F7` (VSCode), `Alt+F7` (VSCode (macOS))  | Move window | Find Usages |
|  `Alt+F8` (Windows), `Alt+F8` (macOS), `Alt+F8` (IntelliJ IDEA Classic (macOS)), `Alt+F8` (macOS System Shortcuts), `Alt+F8` (XWin), `Alt+F8` (GNOME), `Alt+F8` (KDE), `Alt+F8` (Emacs), `Alt+F8` (Sublime Text), `Alt+F8` (Sublime Text (macOS)), `Alt+F8` (VSCode), `Alt+F8` (VSCode (macOS))  | Resize window | Evaluate Expression |

