4

I set these options:

General/Editors/Text Editors - Insert spaces for tabs [checked]

PHP/Code Style/Formatter - Edit profile Eclipse[built in], rename profile to Eclipse[my] - Indentation(tab) - Tab policy: [Spaces only]

But it still using tabs for indentation.

  • I have the Zend Framework 1 Conventions buit in profile selected and it works. – konradwww May 16 '13 at 11:57
  • 1
    Thank you. I found out that Aptana Studio installed recently was conflicting with Zend Studio. Both of them are Eclipse projects so Aptana set some common Eclipse settings which was incompatible with Zend Studio. – Andrew Kondratev May 16 '13 at 19:46

2 Answers2

2

Another setting you need to change is for html files:

Window->Preferences->Web->HTML Files->Editor->Indent Using Spaces

So in summary this are the necessary steps:

  • Window->Preferences->General->Editors->Text Editors->Insert Spaces for Tabs
  • Window->Preferences->Web->HTML Files->Editor->Indent Using Spaces
  • Window->Preferences->PHP->Code Style->Formatter and create a new profile

Here is a nice post describing each step, hope it helps:

Zend Studio - insert spaces for tabs

Ignacio Vazquez
  • 534
  • 5
  • 9
1

Aptana Studio 3 was the reason for such behavior. Obviously it set some eclipse settings which are conflicted with Zend Studio. Uninstalling Aptana and re-installing Zend Studio solved this issue.