1、点击 window->preference-,依次选择 General->Editors->Text Editors,选中右侧的insert space for tabs;如下图所示,保存,第一步完成;