Use spaces instead of tabs:
- Windows > Preferences > Java > Code Style > Formatter > New (create new profile)
- Edit > "Tab policy" > "Space only" > [OK]
- Windows > Preferences > General > Editors > Text Editors > "Insert spaces for tabs" > [Apply and Close]
Replaces tab with spaces when save:
- Windows > Preferences > Java > Editor > Save Actions
- [X] Additional Actions > [Configure] > Formatter [X] Correct indentation
- [OK] > [Apply and Close]
No comments:
Post a Comment