← Back to Shortcut Collections
GoLand

GoLand

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

Shortcuts for continuously improving Go code quality with safe refactoring features like renaming, function extraction, and variable extraction

Shift+F6
Rename
Safely renames a symbol.
💡 Hint: F6 = Rename
🎯 Safely rename across the entire project with automatic reference updates
Ctrl+Alt+M
Extract Method
Creates a new method from selected code.
💡 Hint: Method
🎯 Create new functions from selected code blocks to improve code reusability
Ctrl+Alt+V
Extract Variable
Creates a new variable from selected expression.
💡 Hint: Variable
🎯 Extract complex expressions to variables to greatly improve code readability
Ctrl+Alt+Shift+T
Refactor This
Shows all available refactoring options.
💡 Hint: Refactor This
🎯 Display all available refactoring options and execute the optimal choice
Ctrl+Alt+T
Surround With
Surrounds selected code with if, try-catch, for, etc.
💡 Hint: Template
🎯 Automatically surround selected code with if statements, for loops, error handling, etc.
Alt+Enter
Show Intention Actions
Shows available quick fixes and intention actions.
💡 Hint: Alt + Enter = Fix
🎯 Instantly apply fix suggestions for errors and warnings to improve code quality
Ctrl+Alt+O
Optimize Imports
Removes unused imports and organizes them.
💡 Hint: Optimize
🎯 Organize import statements to comply with Go language best practices