第一步
Windows->Preferences->General->Editors->Text Editors
第二步
Windows->Preferences->Java->Code Styles->Formatter
Windows->Preferences->General->Editors->Text Editors
Windows->Preferences->Java->Code Styles->Formatter
转载于:https://www.cnblogs.com/feiqiangsheng/p/11130568.html