Format Go files on saving
Posted: 08.06.2022 13:07
I am new to CudaText, coming from TextMate on Mac.
In TextMate when I save a file I can run a shell command which can optionally replace the contents of the current file.
This is useful for code formatting and automatically adding code where needed e.g. Go Imports can be automatically added.
I have had a look at 'runners' and 'formatters' but I can't seem to get a formatter for Go working.
Can anyone point me in the right direction?
Thanks
In TextMate when I save a file I can run a shell command which can optionally replace the contents of the current file.
This is useful for code formatting and automatically adding code where needed e.g. Go Imports can be automatically added.
I have had a look at 'runners' and 'formatters' but I can't seem to get a formatter for Go working.
Can anyone point me in the right direction?
Thanks