Run actions on save

Perform various tasks after you save the files you work on

If you want to perform tasks on save, you can now use the Actions on save feature to reformat the source code, optimize imports, rearrange it, run cleanup, or even upload it to a specified sever.

action_on_save

Turn on the actions you want to perform on save in the GoLand | Settings for macOS ⌘ Сmd , or File | Settings for Windows and Linux.

Then, navigate to Settings > Tools > Actions on Save section of the IDE.


Related Resources

Run Anything
Run Anything
Launch run/debug configurations, applications, scripts, commands, tasks, and open recent projects.
Change the editor font size using the mouse wheel
Change the editor font size using the mouse wheel
Increase or decrease the font size on-the-fly
Configuring the New UI in any JetBrains IDE
Configuring the New UI in any JetBrains IDE
We'll walk you through the steps to enable the sleek and efficient New UI in your favorite JetBrains Integrated Development Environment.