millermedeiros / esformatter

ECMAScript code beautifier/formatter
MIT License
970 stars 91 forks source link

about indentation #431

Closed liushaohua closed 8 years ago

liushaohua commented 8 years ago

The default indentation is 2, how to change to 4?thank you

millermedeiros commented 8 years ago

Set the indent.value to 4 spaces instead of 2.

or run as:

esformatter --indent.value="    "

https://github.com/millermedeiros/esformatter/blob/master/doc/config.md#indent