Skip to content

Instantly share code, notes, and snippets.

@benjaminbojko
Last active August 29, 2015 13:56
Show Gist options
  • Save benjaminbojko/af1cd21137e6f2f32309 to your computer and use it in GitHub Desktop.
Save benjaminbojko/af1cd21137e6f2f32309 to your computer and use it in GitHub Desktop.
JS Beautify Settings
{
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options
// Documentation: https://github.com/einars/js-beautify/
"html": {
"brace_style": "collapse", // "expand", "end-expand", "expand-strict"
"indent_char": " ",
"indent_scripts": "keep", // "separate", "normal"
"indent_size": 2,
"max_preserve_newlines": 10,
"preserve_newlines": true,
"unformatted": ["a", "sub", "sup", "b", "i", "u"],
"wrap_line_length": 0
},
"css": {
"indent_char": " ",
"indent_size": 2
},
"js": {
"brace_style": "collapse", // "expand", "end-expand", "expand-strict"
"break_chained_methods": false,
"e4x": false,
"eval_code": false,
"indent_char": " ",
"indent_level": 0,
"indent_size": 2,
"indent_with_tabs": false,
"jslint_happy": false,
"keep_array_indentation": false,
"keep_function_indentation": false,
"max_preserve_newlines": 10,
"preserve_newlines": true,
"space_before_conditional": true,
"space_in_paren": false,
"unescape_strings": false,
"wrap_line_length": 80
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment