IntelliJにSave Actionsプラグインをインストール
menu -> Preferences-> Plugins -> input “save actions” -> install -> IntelliJ restart
![](https://littleengineer.jp/wp-content/uploads/2020/10/image-6-1024x298.png)
Save Actionsを設定
menu -> Preferences -> Save Actions
- General : Active save actions on saveをチェック
- Formatting Actions : Reformat fileをチェック
![](https://littleengineer.jp/wp-content/uploads/2020/10/image-8-1024x264.png)
確認
スペースを入れてみたりコードを適当に変更してファイル保存する。
フォーマットが自動で行われることを確認。
コメントを残す