Formatting - Settings for JavaScriptIn this window you can set up formatting options for JavaScript scripts The settings window for JavaScript can be called from the Formatting Source Code window, or from the program settings window . Block settingsChoose how the code is formatted: Opening brackets in a new lineSelect this option if you want the curly brackets marking the beginning of the function body to always be placed on a new line, as in the example below: function function_name() { // function contents }Opening brackets at the end of the line Select this option if you want the curly brackets marking the beginning of the function body to be placed at the end of the line where the function name is, as in the example below: function function_name() { // function contents } Single indent size Use tabs instead of spaces Do not indent blank lines Line spacingIn this section, you can define whether to place additional blank lines between the individual functions. This increases the readability of the code. Blank lines between functions Move instructions after semicolon to a new line |
Related topics |