atom-alignment icon indicating copy to clipboard operation
atom-alignment copied to clipboard

Align the values, not the colons

Open mmahalwy opened this issue 10 years ago • 4 comments

Is there a way to align the values but maintain the colons stuck to the key?

Thanks

mmahalwy avatar Jul 13 '15 18:07 mmahalwy

+1

In other words, in JSON and Ruby, among others, the colons themselves have to be immediately to the right of the key.

{
  this: 1,
  some_other_thing: 2
}

This gets aligned as follows:

{
  this            : 1,
  some_other_thing: 2
}
// Coffeescript allows this, btw.

when it should look like this:

{
  this:             1,
  some_other_thing: 2
}

allolex avatar Jan 16 '16 19:01 allolex

:+1:

MarkMurphy avatar Jan 30 '16 17:01 MarkMurphy

Bumping. This would make the plugin usable with Ruby.

pre avatar May 11 '17 06:05 pre

Is there any update for this ? I'm searching everywhere to be able to align this way, but it seems no plugin works clean, including this one

Loschcode avatar Oct 19 '18 13:10 Loschcode