adrianlee44 / atom-aligner

Easily align multi-line with support for different operators and custom configurations
https://atom.io/packages/aligner
MIT License
78 stars 3 forks source link

How can I tell aligner to align based of a comma #56

Closed michaelmesser closed 4 years ago

michaelmesser commented 8 years ago

How can I achieve this transformation:

Map<_, string[]>([
    [_.name, ["name"]],
    [_.author, ["author"]],
    [_.image, ["image"]],
    [_.description, ["description"]],
])

=>

Map<_, string[]>([
    [_.name,        ["name"]],
    [_.author,      ["author"]],
    [_.image,       ["image"]],
    [_.description, ["description"]],
])

There is a similar example on the front page.

adrianlee44 commented 8 years ago

What language is this?

adrianlee44 commented 8 years ago

Closing this since there is no activity for the last few weeks.

michaelmesser commented 8 years ago

This is typescript

adrianlee44 commented 8 years ago

Thanks. Will take a look.

adrianlee44 commented 4 years ago

Looks like there is an addon for Typescript now (https://atom.io/packages/aligner-typescript). Closing this.