jdavisclark / JsFormat

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

Feature request #110

Closed raghuveerp closed 8 years ago

raghuveerp commented 10 years ago

http://stackoverflow.com/questions/11248071/how-do-i-get-jsformat-to-preserve-whitespaces-that-pad-the-inside-of-my-function

When I run JSFormat, it turns:

function( stuff ) { into

function(stuff) { How do I prevent this behavior?

jdavisclark commented 10 years ago

@raghuveerp try setting the "jslint_happy" option to true; it's disabled by default. Warning: I don't remember what else is potentially affected by that setting.

bitwiseman commented 10 years ago

In the next version of js-beatifier, we will likely have a setting for this specifically, with no other side-effects. see https://github.com/beautify-web/js-beautify/pull/474