I use the following array initialization style in code:
$a = array( 'one' => 123, 'two' => 456 );
But PDT / Zend Studio does not work properly in this case; after pressing the [Return] key, it places the cursor under $ a (in my example) and ignores the indent. If the keys of the array are numbers (at least they don't start with quotes), everything works fine.
Here's how it works now (| is the position where edtitor places the caret after pressing [Return])
$a = array( 'one' => 123,[RETURN] | );
Expected Result:
$a = array( 'one' => 123,[RETURN] | );
So is it possible to make the editor follow my nesting rules?
php zend-studio eclipse-pdt
Sergey Stolyarov
source share