Automatic indentation when you open a block in Zend Studio


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
Searched in settings but never found. Can Zend Studio for Eclipse to do automatic indentation when you open a new block? Very used to this in the previous editor. Example:

if (true)
{
....return;
}


After entering the opening brace and pressing enter, the cursor moves to the next line, the editor automatically puts a closing parenthesis line below. After that you have to press tab to make the obvious indentation (before the return statement in the example). Can I configure the Studio so that the indent is also set automatically?
by | 5 views

1 Answer

0 like 0 dislike
On 7.2.1 Studio default and indented (just checked).
This is configured here:
Window -> Preferences -> PHP -> Code Style -> Formatter -> choose profile -> Show.
Tab Indentation. There daws where it is necessary to put (all except the last one by default).
\r
PS By the way, I advise you to take a look at phpStorm as an alternative to Zend. I went — no regrets.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
asked Mar 22, 2019 by web4_0
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
27,391 users