← Back to Shortcut Collections
GoLand

GoLand

A smart IDE optimized for Go development, achieving efficient Go programming with fast code completion and refactoring

Shortcuts that dramatically streamline Go development with Go-specific completion, formatting, and import management features

Ctrl+Space
Basic Code Completion
Shows basic code completion based on context.
💡 Hint: Space for completion
🎯 Presents appropriate completion suggestions based on context, significantly reducing typing
Ctrl+Shift+Space
Smart Code Completion
Shows smarter type-matching code completion.
💡 Hint: Smart + Space
🎯 Write accurate code quickly with smart completion that understands Go's type system
Ctrl+Alt+O
Optimize Imports
Removes unused imports and organizes them.
💡 Hint: Optimize
🎯 Automatically remove unused imports and instantly organize according to goimports
Ctrl+Alt+L
Reformat Code
Reformats code according to code style settings.
💡 Hint: Layout
🎯 Apply standard formatting according to gofmt to maintain readable code
Alt+Insert
Generate Code
Generates constructors, getters/setters, methods, etc.
💡 Hint: Insert
🎯 Auto-generate struct methods, test cases, interface implementations, and more
Ctrl+Shift+Enter
Complete Statement
Automatically completes the current statement (adds semicolons, etc.).
💡 Hint: Complete + Enter
🎯 Auto-complete semicolons and parentheses at line endings for efficient syntactically correct code
Ctrl+P
Parameter Info
Shows method parameter information.
💡 Hint: Parameter
🎯 Display function and method parameter info to quickly input correct arguments
Ctrl+Q
Quick Documentation
Shows documentation for the element at caret.
💡 Hint: Quick doc
🎯 Instantly reference documentation for Go standard library and external packages