first:set the 4 space for tab.
1.preferences--editor-text editor - inserts spaces for tabs.
2. preferences-java-code style - formate - edit - tab policy------space only
second: set the unix utf-8 mode.
genlerate -- text