Cheatography
https://cheatography.com
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+Shift+/ |
Reformat file |
Ctrl+Alt+L |
Find in file |
Ctrl+F |
Find Everywhere |
Ctrl+Shift+F |
Replace |
Ctrl+R |
Goto line |
Ctrl+G |
Code Navigation
Show Declaration or Usages |
Ctrl+B |
Show Implementations |
Ctrl+Alt+B |
Go Back |
Shift+Alt+LeftArrow |
Go Forward |
Shift+Alt+RightArrow |
Inline Definition |
Ctrl-Shift-I |
Next / Previous Error |
F2 / Shift+F2 |
|
|
Code Folding
Collapse All Blocks |
Ctrl+Shift+- |
Expand All Blocks |
Ctrl+Shift++ |
Collapse This Block |
Ctrl+- |
Expand This Block |
Ctrl++ |
Collapse This Block Recursive |
Ctrl+Alt+- |
Expand This Block Recursive |
Ctrl+Alt+- |
Refactoring
Rename (All-select literal first) |
Shift+F6 |
Miscellaneous
Clear Anything (selection, search ...) |
Esc |
Goto Editor Window |
Esc |
|
|
Tool Windows / Popups (toggle)
Hints
Configure Error Navigation In context menu of editor right sidebar choose High Priority
|
|