JavaScript Preferences

To configure the JavaScript format options, open the Preferences dialog box (OptionsPreferences) and go to EditorFormatJavaScript.

The following options control the behavior of the Format and Indent action:

  • Start curly brace on new line - Opening curly braces start on a new line.
  • Preserve empty lines - Empty lines in the JavaScript code are preserved. This option is enabled by default.
  • Allow formatting embedded JavaScript - Applied only to XHTML documents, this option allows Oxygen XML Developer to format embedded JavaScript code, taking precedence over the Schema aware format and indent option. This option is enabled by default.

Was this helpful?