jdavisclark / JsFormat

Javascript formatting for Sublime Text 2 & 3
1.42k stars 222 forks source link

else if reformats #121

Closed danihodovic closed 9 years ago

danihodovic commented 9 years ago

I prefer this style of writing:

if(true) {
...
}

else if(false) {
...
}

But JSFormat default formats to:

if(true) {
...
} else if (false) {
...
}

Is there some setting to disable else if/else formatting?

zswang commented 9 years ago
{
    ...
    "brace_style": "end-expand",
}

you are welcome

jdavisclark commented 9 years ago

@zswang +1