Inserting Spaces Instead of Tabs in ALL Files

bobber205 picture bobber205 · Aug 11, 2010 · Viewed 8.8k times · Source

Our unit testing setup makes sure you use spaces instead of tabs in all files, including .jsp and jspx. I have set this option for the general editor but the jsp editor does not recognize/see this option and still continues to use tabs instead of spaces.

Is there a way to force the jsp editor to insert spaces instead of tabs?

:)

Answer

BalusC picture BalusC · Aug 11, 2010

Go to Window > Preferences and set option Indent using spaces in the following categories:

  • Web > HTML files > Editor (covers JSP)
  • XML > XML files > Editor (covers JSPX and Facelets)
  • Web > CSS files > Editor (you'd like to cover this as well)