PhpStorm - 防止数组括号对齐

时间:2016-06-25 09:31:07

标签: php phpstorm

PhpStorm正在对齐数组中的括号。

DB::table('something')->create([
                                   'title' => 'John',
                                   'description' => 'Doe',
                               ]); // I don't want to align it this way...


DB::table('something')->create([
    'title' => 'John',
    'description' => 'Doe',
]); // But this way...

我在Settings/Preferences > Editor > Code Style > PHP哪里更改此内容?

1 个答案:

答案 0 :(得分:3)

终于搞清楚了!

转到首选项>编辑>代码风格> PHP>包裹和支撑。取消选中Align when multiline下的Function call arguments

PhpStorm Preferences Screenshot