1、insert space for tabs前打勾

eclipse中设置tab为4个空格

2、General settings中选择Spaces only

eclipse中设置tab为4个空格

3、搞定

相关文章: