Format go files on save: Preferences, Tools / File Watches. Click add '+' button at the bottom and pick go fmt from the list. This adds pre-built watcher that runs go fmt on the file after file save.

Go to index of articles.

Share on