Show Menu
Cheatography

Goland (Linux 2019.3) Keyboard Shortcuts (DRAFT) by

Keyboard (and a few UI) shortcuts in GoLand that I have found useful

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Basic Editing

Remove line
Ctrl+K
Comment line
Ctrl+/
Comment block
Ctrl+S­hift+/
Reformat file
Ctrl+Alt+L
Find in file
Ctrl+F
Find Everywhere
Ctrl+S­hift+F
Replace
Ctrl+R
Goto line
Ctrl+G

Code Navigation

Show Declar­ation or Usages
Ctrl+B
Show Implem­ent­ations
Ctrl+Alt+B
Go Back
Shift+­Alt­+Le­ftArrow
Go Forward
Shift+­Alt­+Ri­ght­Arrow
Inline Definition
Ctrl-S­hift-I
Next / Previous Error
F2 / Shift+F2
 

Code Folding

Collapse All Blocks
Ctrl+S­hift+-
Expand All Blocks
Ctrl+S­hift++
Collapse This Block
Ctrl+-
Expand This Block
Ctrl++
Collapse This Block Recursive
Ctrl+Alt+-
Expand This Block Recursive
Ctrl+Alt+-

Refact­oring

Rename (All-s­elect literal first)
Shift+F6

Miscel­laneous

Clear Anything
(selection, search ...)
Esc
Goto Editor Window
Esc
 

Tool Windows / Popups (toggle)

Project
Alt-1
Editor
Esc

Hints

Configure Error Navigation
In context menu of editor right sidebar choose High Priority

#TODO

Debug Section