A macro to quickly convert lines of text into single line of comma separated values.
Usage - select/highlight some text in sublime. Type this command
super+, super+,
e.g. on a Mac command+,
(command + comma) two times in a row.
INPUT
[email protected]
[email protected]
[email protected]
[email protected]
INPUT
[email protected], [email protected], [email protected], [email protected]
INSTALL
- Download the macro below and move it into your settings folder
mv add-commas.sublime-macro ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/
- Copy the keybinding to clipboard. Then in Sublime go to
Preferences >> Key Bindings - User
and paste it in there. Might need to reboot Sublime, but you should be good to go.