使用快捷鍵自動排版 Windows: Ctrl + Shift + F Mac: ⌘ + ⇧ + F 儲存時自動排版、import packages、增加 annotations 點選 Windows -> Preferences Java -> Editor -> Save Action -> 勾選 Perform the selected actions on save Format source code:自動排版 Organize imports:自動 import Additional actions:自動增加 annotations