views:

38

answers:

1

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?

:)

A: 

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)
BalusC