GoLand is the JetBrains IDE built for the Go programming language: a full environment for writing, testing and debugging Go code, with smart code completion, refactoring tools, a built-in debugger, version control, a terminal and profiling tools such as the Go Optimization window. Because it is built on the IntelliJ platform, its shortcuts will feel familiar if you have used IntelliJ IDEA, PyCharm, WebStorm or PhpStorm.
This complete list explains every shortcut in plain words, so you know not just which keys to press but what each one actually does. Every shortcut here was checked against JetBrains own published keymap pages. Windows and Linux share the same default keymap, while macOS has its own, so this post gives both keys for every shortcut. The current release is GoLand 2026.3, which adds the JetBrains Air layer for working with coding agents and a profiler skill for finding performance bottlenecks; GoLand 2026.2 added Go 1.27 support and the Go Optimization tool window.
How to Use GoLand Shortcuts
Three shortcuts unlock almost everything in GoLand. Press Shift twice to open Search Everywhere, which finds any file, action, type, symbol, tool window or setting. Press Control plus Shift plus A to open Find Action, type the name of any command, and run it without touching the menu. Press Alt plus Enter on any highlighted error or warning to see quick-fixes and intention actions. Learn those three first, and you can find every other shortcut from inside the IDE itself.
Second, GoLand suggests a keymap when you first install it, based on your operating system, and you can change it at any time: open Settings with Control plus Alt plus S on Windows and Linux, or Command plus comma on a Mac, and select Keymap. There you can switch keymaps, search for any action by name, or press a key combination to find which action it runs. Third, JetBrains warns that a keyboard without an English layout may stop some shortcuts being detected, so switch to an English layout if a shortcut seems dead. Finally, a few keys change meaning with the focus: Control plus D duplicates a line in the editor but opens the diff view in the Diff Viewer, and F7 steps into code while debugging but jumps to the next difference in the Diff Viewer.
Top GoLand Shortcuts
These are the shortcuts JetBrains lists as the most useful to learn.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Double Shift | Double Shift | Search Everywhere: find any file, action, symbol, tool window or setting |
| Ctrl + Shift + A | Command + Shift + A | Find Action: find a command and run it, open a tool window or find a setting |
| Alt + Enter | Option + Enter | Show Intention Actions: quick-fixes for errors and intention actions for code |
| Ctrl + E | Command + E | Recent Files: pick a recently opened file from a list |
| Alt + Insert | Command + N | Generate: generate constructors, getters, setters and other code |
| Ctrl + Alt + S | Command + Comma | Settings: open the Settings dialog |
| Double Ctrl | Double Control | Run Anything: run a command, file or configuration by typing its name |
| Ctrl + Alt + L | Command + Option + L | Reformat Code: reformat the current file to the code style |
Build Projects Shortcuts
Build shortcuts compile your Go project. A build catches compile errors before you run the program.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + F9 | Command + F9 | Build Project: compile the whole project |
| Ctrl + Shift + F9 | Command + Shift + F9 | Rebuild: rebuild the project from scratch |
Basic Editing Shortcuts
Basic editing shortcuts cut, copy, paste, save, undo and redo, plus the line operations Go developers use all day.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + X | Command + X | Cut: cut the selection, or the whole line if nothing is selected |
| Ctrl + C | Command + C | Copy: copy the selection, or the whole line if nothing is selected |
| Ctrl + V | Command + V | Paste: paste from the clipboard |
| Ctrl + S | Command + S | Save All: save every open file, and run gofmt when Reformat on Save is on |
| Ctrl + Z | Command + Z | Undo: undo the last change |
| Ctrl + Shift + Z | Command + Shift + Z | Redo: redo a change you undid |
| Tab | Tab | Indent Selection: move the selection one indent to the right |
| Shift + Tab | Shift + Tab | Unindent Line or Selection: move the selection one indent to the left |
| Shift + Enter | Shift + Enter | Start New Line: start a new line below the current one |
| Ctrl + Y | Command + Backspace | Delete Line: delete the whole line at the caret |
| Ctrl + Shift + J | Control + Shift + J | Join Lines: join the next line onto the current line |
| Ctrl + D | Command + D | Duplicate Line or Selection: copy the line or selection below itself |
Caret Navigation Shortcuts
Caret navigation moves the text cursor without the mouse: by word, by line, by method, and to the start or end of the file.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + Left | Option + Left | Move Caret to Previous Word: jump one word to the left |
| Ctrl + Right | Option + Right | Move Caret to Next Word: jump one word to the right |
| Home | Command + Left | Move Caret to Line Start: jump to the start of the line |
| End | Command + Right | Move Caret to Line End: jump to the end of the line |
| Alt + Down | Control + Shift + Down | Next Method: jump to the next function or method |
| Alt + Up | Control + Shift + Up | Previous Method: jump to the previous function or method |
| Ctrl + Home | Command + Home | Move Caret to Text Start: jump to the start of the file |
| Ctrl + End | Command + End | Move Caret to Text End: jump to the end of the file |
Select Text Shortcuts
Selection shortcuts extend the caret moves above so they select text as they go. Control plus W is the one to learn first: it grows the selection from a word to a whole function.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + A | Command + A | Select All: select everything in the current file |
| Shift + Left / Shift + Right | Shift + Left / Shift + Right | Left / Right with Selection: extend the selection one character at a time |
| Shift + Up / Shift + Down | Shift + Up / Shift + Down | Up / Down with Selection: extend the selection one line at a time |
| Ctrl + W | Option + Up | Extend Selection: grow the selection to the next larger code construct |
| Ctrl + Shift + W | Option + Down | Shrink Selection: shrink the selection to the next smaller code construct |
Code Folding Shortcuts
Code folding hides a function, a block or a comment so you can see the shape of a long file.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + NumPad + | Command + NumPad + | Expand: open the folded block at the caret |
| Ctrl + NumPad - | Command + NumPad - | Collapse: fold the block at the caret |
| Ctrl + Shift + NumPad + | Command + Shift + NumPad + | Expand All: open every folded block in the file |
| Ctrl + Shift + NumPad - | Command + Shift + NumPad - | Collapse All: fold every block in the file |
| Ctrl + . | Command + . | Fold Selection: fold the selected code into one line |
Multiple Carets and Selection Shortcuts
Multiple carets let you type in several places at once. Alt plus J selects the next occurrence of the word at the caret, so you can edit each one in turn.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + Click | Option + Click | Add / Remove Caret: place an extra caret where you click |
| Alt + Shift + Insert | Command + Shift + 8 | Toggle Column Selection Mode: select text in a rectangle instead of lines |
| Alt + Shift + G | Option + Shift + G | Add Caret to Each Line in Selection: put a caret at the end of every selected line |
| Alt + J | Control + G | Add Selection for Next Occurrence: select the next occurrence of the current word |
| Ctrl + Alt + Shift + J | Command + Control + G | Select All Occurrences: select every occurrence of the current word at once |
Coding Assistance Shortcuts
Coding assistance covers code completion, parameter hints, quick documentation, moving statements, commenting, and wrapping code in a block such as if or for.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + Space | Control + Space | Basic Completion: suggest names, functions and keywords at the caret |
| Ctrl + Shift + Space | Control + Shift + Space | Type-Matching Completion: suggest only items that fit the expected type |
| Ctrl + Shift + Enter | Command + Shift + Enter | Complete Current Statement: finish the statement with the missing brackets and semicolon |
| Ctrl + P | Command + P | Parameter Info: show the parameters of the function at the caret |
| Ctrl + Q | F1 | Quick Documentation: show the documentation for the symbol at the caret |
| Ctrl + Shift + Up | Command + Shift + Up | Move Statement Up: move the current statement one step up |
| Ctrl + Shift + Down | Command + Shift + Down | Move Statement Down: move the current statement one step down |
| Ctrl + / | Command + / | Comment with Line Comment: comment or uncomment the current line |
| Ctrl + Shift + / | Command + Option + / | Comment with Block Comment: comment or uncomment a block of code |
| Ctrl + Alt + T | Command + Option + T | Surround With: wrap the selection in if, for, or another construct |
Context Navigation Shortcuts
Context navigation jumps around the project: to a line number, back to where you were, and between bookmarks for places you keep returning to.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + G | Command + L | Go to Line / Column: jump to a line number, or a line and column |
| Ctrl + Tab | Control + Tab | Switcher: switch between open files and tool windows |
| Alt + F1 | Option + F1 | Select In: show the current file in the Project view or another view |
| Ctrl + Shift + Backspace | Command + Shift + Backspace | Last Edit Location: jump back to the last place you edited |
| Ctrl + Alt + Left | Command + [ | Back: go back to the previous caret position |
| Ctrl + Alt + Right | Command + ] | Forward: go forward to the next caret position |
| F11 | F3 | Toggle Anonymous Bookmark: bookmark the current line without a number |
| Ctrl + [digit] | Control + [digit] | Go to Bookmark with Digit: jump to the numbered bookmark you press |
Find and Search Shortcuts
Find shortcuts search inside one file or across the whole project. Control plus Shift plus F searches every file, and Control plus Shift plus N opens any file by name.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + F | Command + F | Find: find text in the current file |
| F3 / Shift + F3 | Command + G / Command + Shift + G | Find Next / Find Previous: jump to the next or previous match in the file |
| Ctrl + R | Command + R | Replace: find and replace text in the current file |
| Ctrl + Shift + F | Command + Shift + F | Find in Files: search for text in every file in the project |
| Ctrl + Shift + R | Command + Shift + R | Replace in Files: find and replace text across the whole project |
| Ctrl + F3 | N/A | Next Occurrence of the Word at Caret: jump to the next use of the word under the caret |
| Ctrl + Shift + N | Command + Shift + O | Go to File: open a file by typing its name |
| Ctrl + Alt + Shift + N | Command + Option + O | Go to Symbol: jump to a function, type or variable by name |
Navigate from Symbols Shortcuts
Symbol navigation follows the connections in your code: from a call to its definition, from an interface to its implementations, and from any symbol to every place it is used.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + F7 | Option + F7 | Find Usages: show every place a code element is used in the project |
| Ctrl + B | Command + B | Go to Declaration or Usages: jump to the declaration of the symbol at the caret |
| Ctrl + Shift + B | Command + Shift + B | Go to Type Declaration: jump to the declaration of the symbol's type |
| Ctrl + Alt + B | Command + Option + B | Go to Implementation: jump to the implementations of an interface or method |
| Ctrl + Shift + F7 | Command + Shift + F7 | Highlight Usages in File: highlight every use of the symbol in this file |
Go Tests and Go Tools Shortcuts
The most useful Go-only shortcut is Control plus Shift plus T, which jumps between a Go file and its test file, and can also generate a new test for a function, a file or a whole package. GoLand has no default keyboard shortcut for running gofmt: formatting is done through Reformat Code, and when Reformat on Save is on, pressing Control plus S runs both the built-in formatter and gofmt.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + Shift + T | Command + Shift + T | Go to Test / Test Subject: jump between a Go file and its test, or generate a test |
| Ctrl + Shift + F10 | Use the gutter Run icon | Run Test: run the test at the caret, or all tests in the file or folder |
| Ctrl + F5 | Use the Test Runner toolbar | Rerun Tests: run all the tests in the current test session again |
Code Analysis Shortcuts
Code analysis shortcuts work with the inspections that underline problems in your code. F2 jumps to the next highlighted error.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + F1 | Command + F1 | Error Description: show the description of the error at the caret |
| F2 / Shift + F2 | F2 / Shift + F2 | Next / Previous Highlighted Error: jump to the next or previous error or warning |
Run and Debug Shortcuts
Run and debug shortcuts start your Go program, step through code line by line, and inspect values while it is paused. F7 steps into a function call, F8 steps over it, and Shift plus F8 steps out of it.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Shift + F10 | Control + R | Run Context Configuration: run the configuration for the current file |
| Alt + Shift + F10 | Control + Option + R | Run: choose a run configuration and run it |
| Shift + F9 | Control + D | Debug Context Configuration: debug the configuration for the current file |
| Alt + Shift + F9 | Control + Option + D | Debug: choose a debug configuration and start debugging |
| Ctrl + F2 | Command + F2 | Stop: stop the running program or test session |
| F9 | Command + Option + R | Resume Program: continue running a paused program |
| F8 | F8 | Step Over: run the current line without entering the function it calls |
| F7 | F7 | Step Into: enter the function called on the current line |
| Shift + F8 | Shift + F8 | Step Out: run until the current function returns to its caller |
| Ctrl + F8 | Command + F8 | Toggle Line Breakpoint: set or remove a breakpoint on the current line |
| Ctrl + Shift + F8 | Command + Shift + F8 | View Breakpoints / Edit Breakpoint: open the breakpoints list and edit a breakpoint |
Refactoring Shortcuts
Refactoring changes the structure of code without changing what it does: rename a symbol everywhere, extract a block into a function, or introduce a variable. GoLand updates every usage for you.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Shift + F6 | Shift + F6 | Rename: rename the symbol at the caret and all of its usages |
| Ctrl + F6 | Command + F6 | Change Signature: change a function name, parameters or return values |
| F6 | F6 | Move: move a type, function or file to another package or file |
| Ctrl + Alt + M | Command + Option + M | Extract Method: turn the selected code into a new function |
| Alt + Delete | Command + Delete | Safe Delete: delete a symbol only if nothing else uses it |
Version Control (VCS) Shortcuts
Version control shortcuts commit, push, update and roll back from the keyboard, and Alt plus backtick opens the VCS operations popup.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + ` | Control + V | VCS Operations Popup: open the version control actions for the current file |
| Ctrl + K | Command + K | Commit: open the commit dialog to save your changes |
| Ctrl + T | Command + T | Update Project: pull the latest changes from the remote repository |
| Ctrl + Alt + Z | Command + Option + Z | Rollback: undo uncommitted changes in the selected files |
| Ctrl + Shift + K | Command + Shift + K | Push: push your commits to the remote repository |
Diff Viewer Shortcuts
The Diff Viewer compares two versions of a file side by side. Note that Control plus D means Duplicate Line in the editor but Show Diff here, and F7 means Step Into while debugging but Next Difference here.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + D | Command + D | Show Diff / Compare Files: compare the two files or versions side by side |
| F7 | F7 | Next Difference: jump to the next difference between the two sides |
| Shift + F7 | Shift + F7 | Previous Difference: jump to the previous difference between the two sides |
| Ctrl + Alt + R | Command + Control + Right | Accept Left Side: take the left version of the current difference |
Tool Windows Shortcuts
Tool windows are the panels around the editor: Project, Find, Run, Debug, Problems, Structure, Services, Version Control, Commit and Terminal. Alt plus a number opens one directly.
| Shortcut (Windows/Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Shift + Escape | Shift + Escape | Hide Active Tool Window: close the tool window that has the focus |
| Ctrl + Shift + F12 | Command + Shift + F12 | Hide All Tool Windows: hide every tool window and give the editor full space |
| Alt + 1 | Command + 1 | Show Project Window: open the Project tool window |
| Alt + 4 | Command + 4 | Show Run Window: open the Run tool window |
| Alt + F12 | Option + F12 | Show Terminal Window: open the built-in terminal |
How to Create Custom Shortcuts in GoLand
Every default shortcut in GoLand is configurable, and you can assign a shortcut to any action that has none by default. Open Settings with Control plus Alt plus S on Windows and Linux, or Command plus comma on a Mac, and select Keymap. Find the action by typing its name, or press a key combination in the Find Shortcut dialog to see which action it runs. Right-click the action, choose Add Keyboard Shortcut, and press the keys you want. You cannot change a predefined keymap directly: when you modify any shortcut, GoLand creates a copy you can configure freely. Extra keymaps, for example for GNOME and KDE, can be installed from the Plugins page.
Tips for GoLand Users
Learn shortcuts in small groups, starting with the five that save the most time every day: double Shift for Search Everywhere, Control plus Shift plus A for Find Action, Alt plus Enter for quick-fixes, Control plus W to grow a selection, and Control plus Slash to comment a line. Use those five for a week, then add Control plus B to jump to a definition, Alt plus F7 to find usages, Shift plus F6 to rename, and Control plus Shift plus T to jump to a test. Press Control plus Space a second or third time when completion shows too few suggestions: JetBrains says the second press adds types from module dependencies and the third adds the whole project. Install the Key Promoter X plugin if you keep reaching for the mouse: it shows a popup with the shortcut every time you run a command with the mouse. Finally, print the default keymap reference card from the Help menu and keep it on your desk.
Frequently Asked Questions
What is the latest version of GoLand?
The current version is GoLand 2026.3, which adds JetBrains Air for working with coding agents and a profiler skill for finding Go performance bottlenecks. GoLand 2026.2 added Go 1.27 support and the Go Optimization tool window. Every shortcut in this post was verified against JetBrains current keymap pages.
What is the shortcut for Search Everywhere in GoLand?
Press Shift twice to open Search Everywhere. It finds any file, action, type, symbol, tool window or setting in your project and in the current Git repository. It works the same on Windows, Linux and macOS.
How do I reformat Go code in GoLand?
Press Control plus Alt plus L on Windows and Linux, or Command plus Option plus L on a Mac, to reformat the current file. GoLand also runs gofmt when you save, because Reformat on Save is on by default.
How do I jump between a Go file and its test in GoLand?
Press Control plus Shift plus T on Windows and Linux, or Command plus Shift plus T on a Mac, with the caret on the function or file. GoLand jumps to the matching test, or prompts you to pick one if there are several, and the same shortcut takes you back. It can also generate a new test for a function, a file or a whole package.
How do I run a test in GoLand?
Place the caret on the test method or in the test file and press Control plus Shift plus F10 on Windows and Linux, or click the gutter run icon next to the test. To run every test in a folder, select the folder and press Control plus Shift plus F10. Press Control plus F5 to run the session again, and Control plus F2 to stop it.
Can I change keyboard shortcuts in GoLand?
Yes. Open Settings with Control plus Alt plus S on Windows and Linux, or Command plus comma on a Mac, and select Keymap. Right-click any action, choose Add Keyboard Shortcut, and press the keys you want. GoLand copies the predefined keymap when you change anything.
Why are my GoLand shortcuts not working?
The most common causes are a keymap that does not match your operating system, a keyboard without an English layout, which JetBrains says can stop some shortcuts being detected, and a function key your operating system has claimed for itself, for example brightness or volume. Check the keymap in Settings, switch to an English layout, and enable function keys if F-keys do nothing. A shortcut can also seem dead when another window has the focus, because keys such as Control plus D and F7 mean different things in the editor, the debugger and the Diff Viewer.
By Umar Farooq, Tech Know.


0 Comments