phpstorm格式化数组

Posted 牛奔

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了phpstorm格式化数组相关的知识,希望对你有一定的参考价值。

如果我们想要的这样的数组格式的话,可以设置

<?php
$arr = array["a" => 0,
              "b" => 1,
              "c" => 2
        ];

File ==> Settings ==> Editor ==> Code Style ==> PHP

找到 Wraping and Braces 下的 Array initializer

 

 点击 Apply 应用就行了

以上是关于phpstorm格式化数组的主要内容,如果未能解决你的问题,请参考以下文章