window-->perference-->java-->code style-->formatter-->edit 在indentation选项卡中有tab policy,选spaces only即可