返回列表

sublime jsFormater配置

默认分类 2014/09/23 18:34

配置如下:

{
    // exposed jsbeautifier options
    "translate_tabs_to_spaces": true,
    "tab_size": 4,
    "indent_with_tabs": false,
    "preserve_newlines": true,
    "max_preserve_newlines": 4,
    "space_in_paren": false,
    "jslint_happy": true,
    "brace_style": "end-expand",
    "keep_array_indentation": false,
    "keep_function_indentation": false,
    "eval_code": false,
    "unescape_strings": false,
    "break_chained_methods": false,
    "e4x": false,
    "wrap_line_length": 0,

    // jsformat options
    "format_on_save": true,
    "jsbeautifyrc_files": false
}