Save actions in IntelliJ IDEA

前端 未结 7 681
挽巷
挽巷 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:49

    I think it might break the philosophy that JetBrains have. Nothing should be done unless the user/developer requests it (and no Wizards). So you are stuck with Ctrl-Alt-L or just indent Ctrl-Alt-I. I personally only use the latter since the code usually formats itself as you type.

    Also Idea saves files as soon as you leave window or (I think) wait for a certain time, this might really mess up things.

提交回复
热议问题