How can one change code format to next-line-open-brace style?


#1

How can one change code format to next-line-open-brace style?


#2

Can you explain more what you mean?


#3

Currently, when I choose “format” from the menu for a JavaScript file AppStudio put the opening curly brace for functions and if-blocks at the end of the line. What I would like to be able to do is to have AppStudio put every opening curly brace on a new line by with just the opening curly brace on that new line. Is there a way to instruct AppStudio to behave in this way?


#4

What, you want to start a religious war over proper formatting? :slight_smile:

AppStudio uses jsbeautifier to format JavaScript code:

http://jsbeautifier.org/

We don’t expose its options.


#5

Well, I was just just checking, so it is not a big deal.

Thanks.