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...
Run Code Online (Sandbox Code Playgroud)
我在哪里改变这个Settings/Preferences > Editor > Code Style > PHP
?
终于想通了!
转到首选项 > 编辑器 > 代码样式 > PHP > 环绕和大括号。Align when multiline
在 下取消选中Function call arguments
。