-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathcfml_format.sublime-settings
70 lines (70 loc) · 3.31 KB
/
cfml_format.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
// default commands to run when calling cfml_format
"default_commands": ["keywords", "blocks", "delimited_scopes", "method_chains", "normalize_strings", "normalize_builtin_functions"],
"singleline_max_col": 180,
"brackets": {
"padding": "spaced", // "spaced|compact"
"padding_strip_newlines": true
},
"parentheses": {
"padding": "spaced", // "spaced|compact"
"padding_strip_newlines": false
},
"keywords": {
"block_to_keyword_spacing": "spaced", // "newline|spaced|compact" - only applies to `else`, `else if`, `while`, `catch`
"to_keyword_spacing": null, // "newline|emptyline" - applies to anything other than a comment
"spacing_to_group": "compact", // "spaced|compact" - eg: `if (condition)` vs `if(condition)`
"spacing_to_block": "compact", // "newline|spaced|compact"
"empty_group_spacing": "compact", // "spaced|compact"
"padding_inside_group": "spaced", // "spaced|compact"
"padding_strip_newlines": false, // never ignored, truthy value - set `padding_inside_group` to null to avoid formatting
"group_to_block_spacing": "compact" // "newline|spaced|compact"
},
"blocks": {
"empty_spacing": "newline", // "spaced|compact|newline|emptyline"
"start_spacing": null, // "newline|emptyline"
"end_spacing": "newline", // "newline|emptyline"
"after_block_spacing": null // "newline|emptyline"
},
"array": {
"empty_spacing": "spaced", // "spaced|compact"
"padding_inside": "spaced", // "spaced|compact"
"after_comma_spacing": "spaced", // "spaced|compact"
"multiline": {
"element_count": 4, // always split onto multiple lines, if there are at least this many elements
"leading_comma": false
}
},
"struct": {
"empty_spacing": "compact", // "spaced|compact"
"padding_inside": "spaced", // "spaced|compact"
"key_value_colon": "spaced", // "spaced|compact"
"key_value_equals": "spaced", // "spaced|compact"
"after_comma_spacing": "spaced", // "spaced|compact"
"multiline": {
"element_count": 4, // always split onto multiple lines, if there are at least this many elements
"leading_comma": false
}
},
"function_declaration": {
"empty_spacing": "spaced", // "spaced|compact"
"padding_inside": "spaced", // "spaced|compact"
"after_comma_spacing": "spaced", // "spaced|compact"
"spacing_to_group": "compact", // "spaced|compact" - e.g. `function name()` vs `function name ()`
"group_to_block_spacing": "compact", // "newline|spaced|compact"
"multiline": {
"element_count": 5, // always split onto multiple lines, if there are at least this many elements
"leading_comma": false
}
},
"function_call": {
"empty_spacing": "compact", // "spaced|compact"
"padding_inside": "spaced", // "spaced|compact"
"after_comma_spacing": "spaced", // "spaced|compact"
"multiline": {
"element_count": 4, // always split onto multiple lines, if there are at least this many elements
"leading_comma": false,
"break_after_first_element": false // break after first element and align other elements to it
}
}
}