cpmcgrath / codealignment

http://www.codealignment.com
199 stars 51 forks source link

Can support align by member in a struct? #109

Closed yanyongcheng closed 2 years ago

yanyongcheng commented 2 years ago

Hi,Chris Can the extension supoort like this: Snipaste_2021-11-30_11-15-20

cpmcgrath commented 2 years ago

Sorry for the delay, If you're wanting the location of the * changed, that's not something an alignment tool should ever handle - maybe your code formatter can do that before performing alignments.

As for the rest of the alignment, I would probably just do it by two align by space. Align the first 5, then align everything with your caret after the columns of the space you want to ignore.

You could also write a regex to align by the last space, or the last space before a semicolon.