Run 'gofmt' after the reformat action

You can run gofmt each time you reformat your code (for example, by pressing &shortcut:ReformatCode;). The first pass is made by the built-in GoLand formatter and then by gofmt.

To enable this feature, open settings by pressing &shortcut:ShowSettings; and navigate to Editor | Code Style | Go. Click the Other tab and select On Reformat Code action checkbox.