adding comma to each line using sublime text 2
To add comma to any line
Select the lines you want to modify
CTRL + SHIFT + L
RIGHT_ARROW
COMMA
Using ctrl + shift + L is how you can modify all selected lines. Very handy :-)
Here's how you'd do it on a Mac:
Command+shift +L > Right Arrow > Comma
and Windows/Linux:
Ctrl+Shift +L > Right Arrow > Comma
I'd recommend this
'Find What': $
// matching all ends of your lines
'Replace With': ,
// replaces all line ends with a coma
this will work with any file :-)