这可能吗?
目前:
$foo->foobar($arg1, $arg2, $arg3);
$foo->foobar($argument1, $argument2, $argument3)
$foo->foobar($string1, $int1, $bool1)
我想要的是:
$foo->foobar($arg1, $arg2, $arg3);
$foo->foobar($argument1, $argument2, $argument3)
$foo->foobar($string1, $int1, $bool1)
对于 PDO
bindValue
作业特别有用。我已经尝试了函数/构造函数调用参数中的大部分对齐选项。
目前不可能/PhpStorm 没有这种特定的格式化功能。
https://youtrack.jetbrains.com/issue/WI-12233——观看此票证(星标/投票/评论)以获取任何进展通知。到目前为止,社区并没有太多兴趣。
附注也许受支持的外部格式化程序之一可以做到这一点(PHP CS Fixer 或 PHP Code Beautifier and Fixer)?