문제

How to configure PhpStorm to place parenthesis on the same line when formatting is triggered (Ctrl + Alt + L)? It currently formats in this way:

function()
{

}

and I want it to format like that

function() {

}
도움이 되었습니까?

해결책

  1. Settings/Preferences
  2. Editor | Code Style | PHP | Wrapping and Braces
  3. Braces placement | In function declaration = End of line

다른 팁

  1. Settings/Preferences
  2. Editor | Code Style | PHP | Braces Placement
  3. In function declaration = End of line
  4. Place braces for empty functions/methods on one line
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top