0

我对 phpStorm 和代码格式化程序有疑问

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

我在哪里可以更改格式器会更改

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

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

1 回答 1

4

Settings| Code Style| PHP| Wrapping and Braces, Braces placement
Other:下一行

于 2011-08-25T21:27:57.753 回答