LoginSignup
51
20

More than 5 years have passed since last update.

Golandでコード保存時に自動でgo fmtやgometalinterを効かせる様に設定する際のメモ

Last updated at Posted at 2018-03-06

自動化できることはバンバン自動化してしまおう(参考)ということで、Golandで「command + s」すると、自動で go fmt とかをしてくれる様にする。

以下の流れで設定できる。

Goland > Preferences > Tools > File Watchers > 「+」ボタン > go fmtgometalinter などを追加(参考画像1を参照) > Apply(参考画像2を参照) > OK

参考画像1
File_Watchers.png

参考画像2
completed.png

これで、「command + s」すると、自動で go fmt とかをしてくれる様になる。

51
20
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
51
20