jdavisclark / JsFormat

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

Allow to disable "format_selection" #148

Closed titoBouzout closed 9 years ago

titoBouzout commented 9 years ago

Hi there!

format_selection is very annoying

  1. It changes the selection to scope (or something like that)
  2. It also mismatch the indentation used in the file, means that if you format a selection and then the whole file, the format will also change.
  3. Completely breaks the format in some situations where the selection may not be valid as is, but valid in the context of the complete document.

It does more harm than good in my use case, so I added a preference to disable it, with default value as current behaviour.

Thanks!

jdavisclark commented 9 years ago

looks good. i like having options for everything.