简体   繁体   中英

PhpStorm - parenthesis formatting on the same line

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM