H
H
Hint2010-10-10 11:55:35
Eclipse
Hint, 2010-10-10 11:55:35

Auto indent when block is opened in Zend Studio?

I searched for a long time in the settings, but did not find it. Can Zend Studio for Eclipse auto indent when opening a new block? Very used to it in the previous editor. Example:

if (true)<br/>
{<br/>
....return;<br/>
}

After typing the opening bracket and pressing enter, the cursor moves to the next line, the editor automatically puts the closing bracket on the line below. After that, you have to press tab to make an obvious indent (before return in the example). Is it possible to set the studio so that the indentation is also set automatically?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lafayette, 2010-10-10
@lafayette

On 7.2.1 studios, by default, this is how it is indented (I just checked it myself).
It is configured here:
Window -> Preferences -> PHP -> Code Style -> Formatter -> choose a profile -> Show.
Indentation tab. There you put daws where you need to (everywhere except for the last one by default).
PS By the way, I advise you to look at phpStorm as an alternative to zend. I switched to it - I do not regret it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question