I have a macro
on IntelliJ that format the code then save:
I have assigned keyboard shortcut Ctrl+S
to that macro:
This works well for css
, js
, and html
.
The problem is, the built-in go-lang-idea-plugin gives different result from gofmt
(formatter program that called by my auto-reload/auto-recompile program gin
that runs when the sources changed/saved on disk)
so the ReformatCode
command for .go
source code is useless.
How to disable that macro only for .go
file? So when I save using Ctrl+S
, it only do SaveAll
?