1、在工具栏上找到window,点击 window->preference然后在打开的界面中选择 General->Editors->Text Editors,再选中右侧的insert space for tabs