Search code examples
zend-studio

Zend Studio 9 tabbing with new line


$arr = array(
        );

It looks like this when i press enter for a new line when I'm defining an array. It is always 2 tabs instead of 1. I didn't have this problem in Zend Studio 8. Any ideas how to fix this?


Solution

  • Windows

    Window > Preferences > PHP > Code Style > Formatter > Edit... > Line Wrapping

    Set Default indentation for array initializers to 0.

    Mac

    Zend Studio > Preferences > PHP > Code Style > Formatter > Edit... > Line Wrapping

    Set Default indentation for array initializers to 0.