Disable reformatting code when saving files

前端 未结 4 1539

I made a small change to an old java file in IntelliJ and when I save the file the IDE automatically reformats all the code. Normally this would be preferable, however it seems

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-02 13:02

    For newer versions (at least WebStorm 2018), Ctrl + S is bound to a save Macro that has a reformat code action followed by save.

    You can remove this reformat with Ctrl + Shift + A search for Macro then modify the save one.

    Edit | Macros | Edit Macros | save | - on the Action: Reformat...

提交回复
热议问题