tamzinblake / js3-mode

A chimeric fork of js2-mode and js-mode
GNU General Public License v3.0
181 stars 13 forks source link

Indentation of nester objects is difficult to read. #94

Open JacksonGariety opened 10 years ago

JacksonGariety commented 10 years ago

Currently, js3-mode will auto-indent a nested, comma-first variable object like this:

var outer = {
  inner: {
  }
}
   , second = void 0

But wouldn't it make more sense to indent it like so?

var outer = {
        inner: {
        }
      }
    , second = void 0

So that the {}s always line up with the variable name? Then you can easily see what's nested inside what else.