Eclipse用4个空格代替Tab 第一步 Windows->Preferences->General->Editors->Text Editors 第二步 Windows->Preferences->Java->Code Styles->Formatter