Eclipse用4个空格代替Tab

第一步

Windows->Preferences->General->Editors->Text Editors

第二步

Windows->Preferences->Java->Code Styles->Formatter

原文地址:https://www.cnblogs.com/feiqiangsheng/p/11130568.html