Using GCI in GoLand



I am having some trouble using gci.
Every time the built-in file watcher (Settings → Tools → Actions on Save → File Watcher: gci` runs and reformats the code, I can no longer undo changes, which makes it a super annoying tool to have running on every save.
As a replacement, I had configured gci as a custom external tool, and I was running it when needed by using the “search everywhere” (double shift). Unfortunately after the latest upgrade to 2024.1 the external tool is no longer showing up in the “search everywhere”. 

With that said, I am wondering how other people configure and use gci.

Thank you in advance.


Hi there,

Thank you for your question! I'm afraid that this is indeed a known issue - IDEA-346648. The good thing is that a fix is currently being worked on and hopefully should be released in one of the upcoming versions of our product. In the meantime, the only option to run the tool seems to run the default configuration as per your message (the built-in file watcher (Settings → Tools → Actions on Save → File Watcher: gci).

Thank you and please let me know if there is anything else I can help you with at the moment.