jdavisclark / JsFormat

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

how to setting the import style? #182

Closed qingyang-id closed 6 years ago

qingyang-id commented 7 years ago

image

when format the code, the import code was break to more lines, i did not want this, what should i do?

jdavisclark commented 6 years ago

@Sailor20: you want to play around with the brace_style setting; the options are:

I generally end up using collapse-preserve-inline. Basically, it tries to detect if you were shooting for an all inline, or all expanded format and respects it.