3

I'm using Zend Studio 9 and have a trouble with outdent (Shift+Tab). It works only if left of the begin of the line is a tab:

[tab]return array();

but doesn't work for the spaces:

[space][space][space][space]return array();

Does someone have a solution for ZS 9 for this problem?

Thx

automatix
  • 14,018
  • 26
  • 105
  • 230

2 Answers2

8

Try change Zend Studio tab policy to spaces

Window -> Preferences -> PHP -> Code Style -> Formatter

enter image description here

enter image description here

automatix
  • 14,018
  • 26
  • 105
  • 230
angy_v
  • 196
  • 4
  • 6
  • 1
    Posting link-only answers is generally discouraged, because the link may become invalid in future. Could you please edit your post to explain the solution in your own words? It is ok to include the link as part of a more verbose answer. – Alexander Tobias Bockstaller Jul 09 '14 at 09:26
0

You have to have a selection on the line, and then it should work. It also works if the selection is on more than one line.

dualmon
  • 1,225
  • 1
  • 8
  • 16
  • It works -- both for one and for multiple lines. But only with tabs. It doesn't work with lines, which have spaces (instead of tabs) at the begin. – automatix Feb 21 '13 at 00:55