问题
$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?
回答1:
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.
来源:https://stackoverflow.com/questions/10036550/zend-studio-9-tabbing-with-new-line