If you use Goland, you most likely want to format on save, here’s how:
- Open Settings and go to Tools -> Filewatchers
- Click
+
and choose eithergofmt
orgoimports
(whatever you prefer)
That’s it! This should be the default in my opinion.
If you use Goland, you most likely want to format on save, here’s how:
+
and choose either gofmt
or goimports
(whatever you prefer)That’s it! This should be the default in my opinion.