You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Paul Bernier edited this page Sep 19, 2020
·
2 revisions
Please follow these instructions to run goimports on file save:
Enable gofmt:
Go to Settings | Tools | File Watchers.
Click the + button and select go fmt.
The default values are good.
In Advance Options select:
Auto-save edited files to trigger the watcher
Trigger the watcher on external changes
Click ok!
Config
Core developers all run goimport as part of goland and so when you check in files and we checkout there are files that instantly so as modified because you did not gofmt and goimports prior to committing.