GoLand Keyboard Shortcut Keys: Complete List (With Functions Explained)

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 ShiftDouble ShiftSearch Everywhere: find any file, action, symbol, tool window or setting
Ctrl + Shift + ACommand + Shift + AFind Action: find a command and run it, open a tool window or find a setting
Alt + EnterOption + EnterShow Intention Actions: quick-fixes for errors and intention actions for code
Ctrl + ECommand + ERecent Files: pick a recently opened file from a list
Alt + InsertCommand + NGenerate: generate constructors, getters, setters and other code
Ctrl + Alt + SCommand + CommaSettings: open the Settings dialog
Double CtrlDouble ControlRun Anything: run a command, file or configuration by typing its name
Ctrl + Alt + LCommand + Option + LReformat 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 + F9Command + F9Build Project: compile the whole project
Ctrl + Shift + F9Command + Shift + F9Rebuild: 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 + XCommand + XCut: cut the selection, or the whole line if nothing is selected
Ctrl + CCommand + CCopy: copy the selection, or the whole line if nothing is selected
Ctrl + VCommand + VPaste: paste from the clipboard
Ctrl + SCommand + SSave All: save every open file, and run gofmt when Reformat on Save is on
Ctrl + ZCommand + ZUndo: undo the last change
Ctrl + Shift + ZCommand + Shift + ZRedo: redo a change you undid
TabTabIndent Selection: move the selection one indent to the right
Shift + TabShift + TabUnindent Line or Selection: move the selection one indent to the left
Shift + EnterShift + EnterStart New Line: start a new line below the current one
Ctrl + YCommand + BackspaceDelete Line: delete the whole line at the caret
Ctrl + Shift + JControl + Shift + JJoin Lines: join the next line onto the current line
Ctrl + DCommand + DDuplicate 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 + LeftOption + LeftMove Caret to Previous Word: jump one word to the left
Ctrl + RightOption + RightMove Caret to Next Word: jump one word to the right
HomeCommand + LeftMove Caret to Line Start: jump to the start of the line
EndCommand + RightMove Caret to Line End: jump to the end of the line
Alt + DownControl + Shift + DownNext Method: jump to the next function or method
Alt + UpControl + Shift + UpPrevious Method: jump to the previous function or method
Ctrl + HomeCommand + HomeMove Caret to Text Start: jump to the start of the file
Ctrl + EndCommand + EndMove 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 + ACommand + ASelect All: select everything in the current file
Shift + Left / Shift + RightShift + Left / Shift + RightLeft / Right with Selection: extend the selection one character at a time
Shift + Up / Shift + DownShift + Up / Shift + DownUp / Down with Selection: extend the selection one line at a time
Ctrl + WOption + UpExtend Selection: grow the selection to the next larger code construct
Ctrl + Shift + WOption + DownShrink 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 + ClickOption + ClickAdd / Remove Caret: place an extra caret where you click
Alt + Shift + InsertCommand + Shift + 8Toggle Column Selection Mode: select text in a rectangle instead of lines
Alt + Shift + GOption + Shift + GAdd Caret to Each Line in Selection: put a caret at the end of every selected line
Alt + JControl + GAdd Selection for Next Occurrence: select the next occurrence of the current word
Ctrl + Alt + Shift + JCommand + Control + GSelect 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 + SpaceControl + SpaceBasic Completion: suggest names, functions and keywords at the caret
Ctrl + Shift + SpaceControl + Shift + SpaceType-Matching Completion: suggest only items that fit the expected type
Ctrl + Shift + EnterCommand + Shift + EnterComplete Current Statement: finish the statement with the missing brackets and semicolon
Ctrl + PCommand + PParameter Info: show the parameters of the function at the caret
Ctrl + QF1Quick Documentation: show the documentation for the symbol at the caret
Ctrl + Shift + UpCommand + Shift + UpMove Statement Up: move the current statement one step up
Ctrl + Shift + DownCommand + Shift + DownMove 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 + TCommand + Option + TSurround 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 + GCommand + LGo to Line / Column: jump to a line number, or a line and column
Ctrl + TabControl + TabSwitcher: switch between open files and tool windows
Alt + F1Option + F1Select In: show the current file in the Project view or another view
Ctrl + Shift + BackspaceCommand + Shift + BackspaceLast Edit Location: jump back to the last place you edited
Ctrl + Alt + LeftCommand + [Back: go back to the previous caret position
Ctrl + Alt + RightCommand + ]Forward: go forward to the next caret position
F11F3Toggle 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 + FCommand + FFind: find text in the current file
F3 / Shift + F3Command + G / Command + Shift + GFind Next / Find Previous: jump to the next or previous match in the file
Ctrl + RCommand + RReplace: find and replace text in the current file
Ctrl + Shift + FCommand + Shift + FFind in Files: search for text in every file in the project
Ctrl + Shift + RCommand + Shift + RReplace in Files: find and replace text across the whole project
Ctrl + F3N/ANext Occurrence of the Word at Caret: jump to the next use of the word under the caret
Ctrl + Shift + NCommand + Shift + OGo to File: open a file by typing its name
Ctrl + Alt + Shift + NCommand + Option + OGo 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 + F7Option + F7Find Usages: show every place a code element is used in the project
Ctrl + BCommand + BGo to Declaration or Usages: jump to the declaration of the symbol at the caret
Ctrl + Shift + BCommand + Shift + BGo to Type Declaration: jump to the declaration of the symbol's type
Ctrl + Alt + BCommand + Option + BGo to Implementation: jump to the implementations of an interface or method
Ctrl + Shift + F7Command + Shift + F7Highlight 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 + TCommand + Shift + TGo to Test / Test Subject: jump between a Go file and its test, or generate a test
Ctrl + Shift + F10Use the gutter Run iconRun Test: run the test at the caret, or all tests in the file or folder
Ctrl + F5Use the Test Runner toolbarRerun 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 + F1Command + F1Error Description: show the description of the error at the caret
F2 / Shift + F2F2 / Shift + F2Next / 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 + F10Control + RRun Context Configuration: run the configuration for the current file
Alt + Shift + F10Control + Option + RRun: choose a run configuration and run it
Shift + F9Control + DDebug Context Configuration: debug the configuration for the current file
Alt + Shift + F9Control + Option + DDebug: choose a debug configuration and start debugging
Ctrl + F2Command + F2Stop: stop the running program or test session
F9Command + Option + RResume Program: continue running a paused program
F8F8Step Over: run the current line without entering the function it calls
F7F7Step Into: enter the function called on the current line
Shift + F8Shift + F8Step Out: run until the current function returns to its caller
Ctrl + F8Command + F8Toggle Line Breakpoint: set or remove a breakpoint on the current line
Ctrl + Shift + F8Command + Shift + F8View 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 + F6Shift + F6Rename: rename the symbol at the caret and all of its usages
Ctrl + F6Command + F6Change Signature: change a function name, parameters or return values
F6F6Move: move a type, function or file to another package or file
Ctrl + Alt + MCommand + Option + MExtract Method: turn the selected code into a new function
Alt + DeleteCommand + DeleteSafe 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 + VVCS Operations Popup: open the version control actions for the current file
Ctrl + KCommand + KCommit: open the commit dialog to save your changes
Ctrl + TCommand + TUpdate Project: pull the latest changes from the remote repository
Ctrl + Alt + ZCommand + Option + ZRollback: undo uncommitted changes in the selected files
Ctrl + Shift + KCommand + Shift + KPush: 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 + DCommand + DShow Diff / Compare Files: compare the two files or versions side by side
F7F7Next Difference: jump to the next difference between the two sides
Shift + F7Shift + F7Previous Difference: jump to the previous difference between the two sides
Ctrl + Alt + RCommand + Control + RightAccept 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 + EscapeShift + EscapeHide Active Tool Window: close the tool window that has the focus
Ctrl + Shift + F12Command + Shift + F12Hide All Tool Windows: hide every tool window and give the editor full space
Alt + 1Command + 1Show Project Window: open the Project tool window
Alt + 4Command + 4Show Run Window: open the Run tool window
Alt + F12Option + F12Show 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.

Post a Comment

0 Comments