前段时间我编辑了代码样式设置,但我“破坏”了一些关于短数组语法的东西,我找不到如何修复。例如,假设我调用一个函数并传递一个数组:my_func([]);如果我按Enter多行写入数组元素,我会得到这个(我觉得很糟糕):my_func([
]);我应该在设置中更改什么才能获得这样的数组:my_func([
]);我在 Ubuntu 上使用 PhpStorm 2019.3。
1 回答

阿波罗的战车
TA贡献1862条经验 获得超6个赞
检查选项卡上的内容- 应该是orSettings/Preferences | Editor | Code Style | PHP | Wrapping and Braces
下的选项之一......Function/constructor call arguments
Array initializer nodes
根据您导出的代码样式文件,这将是Function/constructor call arguments | Align when multiline
一个选项。其他两个控制 after(
和 before 的空行)
。
- 1 回答
- 0 关注
- 78 浏览
添加回答
举报
0/150
提交
取消