The JavaScript Format preferences panel is opened from menu Editor+Format+JavaScript
→ +If true, opening curly braces will start on a new line.
If true, empty lines in the JavaScript code will be preserved.
If checked, the JavaScript content embedded in XML will be formated when the XML content is formated.