【问题标题】:How PhpStorm setting to use COMPACTED Allman same line after open braces style如何在打开大括号样式后使用 COMPACTED Allman 同一行的 PhpStorm 设置
【发布时间】:2019-11-20 09:31:13
【问题描述】:

我希望 PHP 格式在类、函数、if、do、while、for、foreach 的左大括号后停止换行。

class Foo
{   var    $numbers = array("one", "two", "three", "four", "five", "six");
    const FIRST  = 'first';
    const Z      = -1;

    function bar($v, $w = "a")
    {   $y      = $w;
        if(true)
        {   $y = 10;

【问题讨论】:

    标签: ide phpstorm code-formatting jetbrains-ide


    【解决方案1】:

    据我所知,没有这样的选择。您可以将其作为功能请求提交给 JetBrains 问题跟踪器https://youtrack.jetbrains.com/newIssue

    【讨论】:

    • 谢谢,我已经提交了这个功能请求。
    猜你喜欢
    • 1970-01-01
    • 2012-09-27
    • 1970-01-01
    • 2014-04-20
    • 1970-01-01
    • 1970-01-01
    • 2021-05-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多