GoLand
Comprehensive GoLand shortcuts and workflows for Go development with modules, testing, and microservices.
General Shortcuts
Windows/Linux |
macOS |
Description |
Ctrl+Shift+A |
Cmd+Shift+A |
Find Action |
Ctrl+Shift+N |
Cmd+Shift+O |
Go to File |
Ctrl+N |
Cmd+O |
Go to Type |
Ctrl+Shift+Alt+N |
Cmd+Option+O |
Go to Symbol |
Ctrl+E |
Cmd+E |
Recent Files |
Ctrl+G |
Cmd+L |
Go to Line |
Ctrl+F12 |
Cmd+F12 |
File Structure |
Go-Specific Features
Windows/Linux |
macOS |
Description |
Ctrl+Shift+F10 |
Ctrl+Shift+R |
Run Go File |
Alt+Shift+F10 |
Option+Shift+R |
Run Go Application |
Ctrl+Shift+I |
Cmd+Shift+I |
Auto Import |
Ctrl+Alt+Shift+T |
Cmd+Option+Shift+T |
Refactor This |
gofmt + Ctrl+S |
gofmt + Cmd+S |
Format on Save |
Testing
Windows/Linux |
macOS |
Description |
Ctrl+Shift+F10 |
Ctrl+Shift+R |
Run Test |
Ctrl+Shift+F9 |
Ctrl+Shift+D |
Debug Test |
go test |
go test |
Run Package Tests |
go test -v |
go test -v |
Run Verbose Tests |