Stop PhpStorm from aligning associative arrays

前端 未结 5 1064
失恋的感觉
失恋的感觉 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条回答
  •  萌比男神i
    2020-12-16 10:01

    PhpStorm 2019 and up: Settings -> editor -> PHP -> Wrapping and Braces -> Array initializer -> Align key-value pairs [*] (Linux OS)

提交回复
热议问题