Stop PhpStorm from aligning associative arrays

Since PhpStorm 2017.x version the appropriate option is located at:

  • Settings (Preferences on Mac) | Editor | Code Style
  • PHP | Wrapping and Braces
  • Array initializer | Align key-value pairs

enter image description here


ORIGINAL ANSWER (for v2016 and older)

  • Settings (Preferences on Mac) | Editor | Code Style | PHP
  • Other | Array declaration style -> Align key-value pairs

enter image description here

Leave a Comment