开发者

JetBrains PhpStorm code formatter problem

I have problem with phpStorm and code formatter

<?php
function foo()
{
    if ($x > 5) {
        echo "bar";
    }
    return
            "string";
}

where can i change that formater will change

if ($x > 5) {
            echo "bar";
        }

to

if ($x > 5) 
{
         开发者_如何学编程   echo "bar";
        }


Settings | Code Style | PHP | Wrapping and Braces, Braces placement
Other: Next line.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜