Code reformatting on save in PhpStorm or other jetbrains ide

后端 未结 4 368
太阳男子
太阳男子 2021-01-30 10:35

How can I set up that the code is reformatted automatically on saving?

So I don\'t always have to press Ctrl + Alt + L.

4条回答
  •  既然无缘
    2021-01-30 11:08

    Another thing that I found very helpful in combination with this macro is the

    Show Reformat File Dialog.

    In case you want to only reformat the code you just changed, you can set the option:

    Only VCS changed text

    The dialog can be opened through the following shortcut: CTRL+ALT+SHIFT+L

提交回复
热议问题