Skip to content

Goland Configuration

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

You can do the same for goimports and gometalinter.

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.

Clone this wiki locally