【问题标题】:PhpStorm - parenthesis formatting on the same linePhpStorm - 同一行上的括号格式
【发布时间】:2014-04-20 22:59:29
【问题描述】:

如何配置 PhpStorm 在触发格式化时将括号放在同一行(Ctrl + Alt + L)?它目前以这种方式格式化:

function()
{

}

我希望它像这样格式化

function() {

}

【问题讨论】:

    标签: phpstorm


    【解决方案1】:
    1. Settings/Preferences
    2. Editor | Code Style | PHP | Wrapping and Braces
    3. Braces placement | In function declaration = End of line

    【讨论】:

      猜你喜欢
      • 2021-05-14
      • 1970-01-01
      • 2018-08-14
      • 2019-02-09
      • 2011-12-10
      • 2020-02-01
      • 2019-11-20
      • 1970-01-01
      • 2021-06-17
      相关资源
      最近更新 更多