Run the command to save the file in Intellij IDEA

I want to run a script when the file is saved. (This is an automatic git commit in git-wip vein). This is due to Save Actions in IntelliJ IDEA , but it mainly attracted answers to reformatting the code. He was also asked 3 years ago. The only snippet I found was http://arhipov.blogspot.hu/2011/04/code-snippet-intercepting-on-save.html . So I wonder if any things have changed, and now it’s easy to add save-hook.

+7
intellij-idea
source share
1 answer

I think you have at least two options:

+12
source share

All Articles