Change Eclipse to use spaces instead of tabs?

By default Eclipse uses Tabs for indentation.


  1. Click Window » Preferences
  2. Expand Java » Code Style
  3. Click Formatter
  4. Click the Edit button
  5. Click the Indentation tab
  6. Under General Settings, set Tab policy to: Spaces only
  7. Click OK to apply the changes.



Hope this helps..

No comments:

 Python Basics How to check the version of Python interpreter mac terminal

Popular in last 30 days