When I select a line in Textmate and do the shortcut for comment line (command-L on Mac), it uses C-style comments (ie. /* … */). How do I change it to use C++ style comments (ie. // …). I am editing Javascript if that makes a difference. Thanks.
Share
First, in an open TM window:
go to the control bar (at the very bottom)
click the icon with an upper-case “L” in a gray circle (the Language
icon), then
select the language (javascript) from the pop-up that appears after
you click (after you’ve done this, you should see javascript just to the left of the language icon)
cmd-/ (command + forward slash) will give you the language-appropriate comment symbol.