同样的操作,每次都记不住,只要重新安装eclipse,就要去网上找半天。现在记录下....
Step 1:
Windows->Preferences->General->Editors->TextEditors,选中“Insert spaces for tabs”。
Step 2:
Windows->Preferences->Java->CodeStyles->Formatter,点击AcitivieProfile边上的Edit按钮。在打开的页面中的General settings中,令Tab policy为Spaceonly。
--
Good Luck.