TextMate Command: Add comments to end of line

· Read in about 1 min · (81 Words)
textmate python command comment

After reading this message on the textmate-users mailing list, I decided to have a go at writing a command to add comment chars to the ends of lines. Here’s what I ended up with:

To use it, create a command in TextMate’s bundle editor, then make a new command, and set the input and output dropdowns to look like this:

end-of-line-comments
Uploaded with plasq's Skitch!

Finally, set up scope selections (e.g. source.python, source.shell, …), and a key binding if you want one.

Comments