-1

Indentation of PHP 5.4 arrays with new square bracket notation

dan78 11 lat temu Ostatnio zmodyfikowane przez Flavio De Stefano 11 lat temu 1

Indentation of PHP 5.4 arrays with new square bracket notation

It would be helpful to change the auto-indentation settings for PHP files  such that the content of arrays with square bracket syntax is indented.


PHP code auto-indented with ST3 v 5054 looks like this:

Image 259

For nested arrays this quickly becomes very hard to read. 


ST3 correctly indents traditional PHP arrays:

Image 260



Any suggestions how to auto-indent square bracket arrays are welcome. 

Yes. I use everytime "reindent" commands, and it's really frustrating.