jdavisclark/JsFormat

how to setting the import style?

qingyang-id opened this issue · 1 comments

image

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

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

  • expand
  • collapse
  • collapse-preserve-inline
  • end-expand
  • none

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.