Save actions in IntelliJ IDEA

前端 未结 7 741
挽巷
挽巷 2020-12-24 10:13

The only thing that exists in Eclipse, which I miss in IntelliJ IDEA is \"save actions\" - possibility to do some actions (usually formatting) when a file is saved.

7条回答
  •  青春惊慌失措
    2020-12-24 10:46

    See here: Intellij reformat on file save.

    The answer I linked to explains in a few easy steps how to record a macro for optimize imports and reformat and then run that macro when you save your files (bind it to Ctrl+S).

提交回复
热议问题