Stop PhpStorm from aligning associative arrays

前端 未结 5 1091
失恋的感觉
失恋的感觉 2020-12-16 09:46

How can I tell PhpStorm (using version 8.0.3) to keep the following array as is when clicking Cmd+Alt+L to reformat my code:

$array = [
    \'sh         


        
5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-16 09:59

    In Phpstorm 2017.3 & later , This setting is located at File | Settings | Editor | Code Style | PHP | Wrapping and Braces | Array initializer | Align key-value pairs

提交回复
热议问题