如何配置PhpStorm在触发格式化时将括号放在同一行( Ctrl + Alt + L )?它目前以这种方式格式化:
function()
{
}
我希望它像那样格式化
function() {
}
答案 0 :(得分:17)
Settings/Preferences
Editor | Code Style | PHP | Wrapping and Braces
Braces placement | In function declaration = End of line