lmcarreiro / smart-column-indenter

A smart source code indenter that indent the code into columns
MIT License
18 stars 4 forks source link

Add setting for ignoring specific characters or N-1 columns #4

Open presentday-presenttime opened 6 years ago

presentday-presenttime commented 6 years ago

It would be helpful for me if there were an option to ignore ; semi-colon characters, or ignore the last matched character of a line.

let foo = 'foo';
let longerName = 'some string';
let bar = foo;

Current behavior:

let foo        = 'foo'        ;
let longerName = 'some string';
let bar        = foo          ;

Wanted behavior:

let foo        = 'foo';
let longerName = 'some string';
let bar        = foo;
lmcarreiro commented 6 years ago

Sorry for the delay. It would be great to have a setting to ignore commas and semi-colons at the end of each line. I don't have much time to work on this right now, I'll try to do this as soon as I can, but I'm really busy, it may take a few months. Feel free to send a pull request if you want. Thanks.

larshei commented 4 years ago

I think this would be a great option. Same as an option to ignore ':' within a line!