1.Window-->Preferences-->Java-->Code Style-->Formatter
然后右边选择 Edit按钮,在General Settings页中 Tab policy 右边的下拉框,选择Space only!
2.Editors->Text Editors
勾选Insert spaces for tabs和show whitespace characters
1.Window-->Preferences-->Java-->Code Style-->Formatter
然后右边选择 Edit按钮,在General Settings页中 Tab policy 右边的下拉框,选择Space only!
2.Editors->Text Editors
勾选Insert spaces for tabs和show whitespace characters