aligner
Easily align multiple lines and blocks with support for different operators and custom configurations
adrianlee44 115,884 227 1.3.0 MIT GitHub

aligner package

CI

Easily align multiple lines and blocks with support for different operators and custom configurations

Mac: ctrl-cmd-/ Linux/Windows: ctrl-alt-/

aligner

Custom configuration

Package allows user to change the way characters are aligned.

  • Pad either left or right of character
  • If an extra whitespace should be added to the left and/or right of the character
  • Aligning trailing comments when aligning characters
Supported Languages

Install add-on packages to get support for the following languages:

User can either align like this,

let random = {
  troll: 'internet',
  foo: 'bar',
  bar: 'beer',
};

or this,

let random = {
  troll: 'internet',
  foo: 'bar',
  bar: 'beer',
};

For more information, visit wiki

Supported character/operator

For supported characters/operators, see individual add-on packages.

Changelog

Check changelog for more information