This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
2 Replies Last post: Mar 2, 2013 12:38 PM by Evert van Dansen  
Evert van Dansen Newbie 27 posts since
Nov 12, 2009
Currently Being Moderated

Feb 23, 2013 1:01 PM

Place brace on last line?

Is there a code-style option for both php and js to place the closing brace } at the end of the last line of the code-block?

Maxim Makhankov JetBrains 71 posts since
May 31, 2012
Currently Being Moderated
Feb 25, 2013 4:07 PM in response to: Evert van Dansen
Re: Place brace on last line?

Only separate settings.

For PHP: Settings | Code Style | PHP | Wrapping and Braces | Braces placement, choose the cases in which you'd like to have the closing brace at the end of line (by default this is all cases except closing braces in class and function declarations).

For JavaScript: Settings | Code Style | JavaScript | Wrapping and Braces | Braces placement.

More Like This

  • Retrieving data ...