http://stackoverflow.com/questions/407929/how-do-i-change-eclipse-to-use-spaces-instead-of-tabs
On Eclipse 3.6
Window->Preferences->General->Editors->Text Editors->Insert spaces for tabs
===
“Window -> Preferences -> Java -> Code Style -> Formatter”
Active Profile:
new a profile => choose "spaces only" for "tab policy" in the first tab "Indentation"
====
If you havent got too much code, you could do a search and replace manually.
Find: \t
Replace: (4 spaces)
and check the "Regular expressions" option.
沒有留言:
張貼留言