Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2 - alignment of comma separated values

I have installed the Sublime Alignment plugin. It works well for aligning the first character (default is =). How can I align this block in Sublime Text 2 in one shot :

INSERT INTO user VALUES (1, 'Alpha', 'Beta', 'Delta');
INSERT INTO user VALUES (2, 'A', 'B', 'D');

to look like :

INSERT INTO user VALUES (1, 'Alpha', 'Beta', 'Delta');
INSERT INTO user VALUES (2, 'A',        'B',      'D');

Even if I add , as the alignment character in sublime alignment, it only works for the first occurence of ,

like image 561
user Avatar asked Oct 12 '13 06:10

user


Video Answer


1 Answers

Align Tab is quite versatile & can accomplish the alignment and it's not limited to just first character.

Install

like image 159
user Avatar answered Sep 23 '22 21:09

user