Reformat Code
Tell GoLand to clean up indentation and other code style in your file.
Reformat Code makes it a piece of cake to fix style warnings and make your code formatted like go fmt would.
How to use:
Invoke Reformat Code via ⌘⌥L (macOS) / Ctrl+Alt+L (Windows/Linux).