Wrap if condition
Closed this issue · 1 comments
nniicc commented
Hey,
Is there a way to enable wrapping of if conditions?
if(a == true) alert(a)
What i get is
if (a === true) alert(a);
What i'd like to get is something like this
if (a === true) {
alert(a);
}
Im using the default settings, just format_on_save: true
{
"indent_with_tabs": false,
"preserve_newlines": true,
"max_preserve_newlines": 4,
"space_in_paren": false,
"jslint_happy": false,
"brace_style": "collapse",
"keep_array_indentation": false,
"keep_function_indentation": false,
"eval_code": false,
"unescape_strings": false,
"break_chained_methods": false,
"e4x": false,
"wrap_line_length": 0,
"format_on_save": false,
"format_selection": true,
"jsbeautifyrc_files": false,
"ignore_sublime_settings": true,
"format_on_save_extensions": ["js", "json"]
}
bitwiseman commented
Beautifier doesn't currently add or remove non-whitespace characters.
The following could be done within that limitation, but is not at this time:
if (a === true)
alert(a);