IntelliJ 設定存檔自動 formatter
Below is Neil's answer updated.
IntelliJ 13 Steps:
透過巨集錄制完成後並設定成快速鍵。
- Code -> Reformat Code
- Edit -> Macros -> Start Macro Recording
- Code -> Reformat Code
- File -> Save all
- Edit -> Macros -> Stop Macro Recording
- Name the macro (something like "formatted save")
- File -> Settings -> Keymap
- Right click on the macro. Add Keyboard Shortcut. Set the keyboard shortcut to Control + S
- IntelliJ will inform you of a hotkey conflict. Select "remove" to remove other assignments.
留言
發佈留言