phpeclipsephpeclipse

How to tell PHPEclipse to use spaces instead of tabs


I just switched back from PDT to PHPEclipse (Because PDT is too unstable for my taste) but now I have the problem that I can't find out how to tell PHPEclipse to indent PHP code with spaces instead of tabs. I have enabled the usage of spaces in the following preference locations:

PHPEclipse/PHP/Formatter/ (Unchecked "Indentation is represented by a tab")
General/Editors/Text Editors/ (Checked "Insert spaces for tabs")

*.php Files are only associated with the PHPEclipse editor and the standard text editor. The PHPEclipse preferences page says "Some general preferences now live on the Text Editors pages" so it sounds like PHPEclipse should use the general text editor preferences. But it just doesn't work. PHPEclipse always uses tabs instead of spaces.

Any hints how I can get it to use spaces?


Solution

  • just added PHPEclipse to my Eclipse, seems that the following should help you:

    Window > Preferences > PHPEclipse > PHP > Typing*
    

    "Typing" is name of tab. There is setting "Insert spaces for tab (see Code Formatter preference page", check it and you will get spaces instead of tabs ;)