I use IntelliJ with the Golang plugin. Is it possible to configure the IDE to execute gofmt on file save?
3条回答 默认 最新
douzhi2760 2015-11-18 09:52关注Of course you can.
- install File Watchers plugin
- open "Preferences->Tools->File Watchers" & Add a new watcher
- set
File Type:Go,Program: the abosolute path ofgofmt,Arguments:-w $FilePath$ - click
OK
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
