First, Window–preferences opens the Preferences Configuration dialog box:
Then find Php–code Style–formatter, as shown:
Note Here the active profile drop-down box, which shows you the code style configuration file you are using, I am currently: PHP conventions [built-in], in preview previews you can see that indentation is all tab tabs:
to inherit PHP conventions [built-in] style, first select PHP conventions [built-in], then click the Show button:
Then the Indentation tab is found immediately on the open dialog, and the general settings–tab policy and indentation size, I'll change tab policy to spaces, indentation The size is changed to 2 (indicating that 2 spaces are 1 indents):
Clicking OK will prompt you to save, save a profile, and avoid modifying the built-in (built-in) configuration file.
Similarly, because Zend Studio is based on Eclipse, Eclipse can also modify this.
Zend studio/eclipse Indent Settings