我如何定義PhpStorm碼造型把新線如Phpstorm codestyle我們把新換行
if($foo == 'bar') {
//do this
}
是
if($foo == 'bar')
{
//do this
}
我記得這個正在早期版本,但我不能找到它7.1請幫忙
我如何定義PhpStorm碼造型把新線如Phpstorm codestyle我們把新換行
if($foo == 'bar') {
//do this
}
是
if($foo == 'bar')
{
//do this
}
我記得這個正在早期版本,但我不能找到它7.1請幫忙
你應該去Settings -> Code style -> PHP ->Wrapping and Braces
,然後展開Braces placement
和Other
你應該選擇Next line
您可以通過進入設置»[項目設置]»代碼樣式»PHP來實現該功能。 接下來,選擇標籤「Wrapping and Braces」,在頂部您將看到組「大括號放置」。
在此組中您可以將「其他」設置爲「下一行」