In Coda I can make a selection (of code) and press Cmd+/ and it will comment it. If I'm in an HTML section it will use <!-- --> and if I'm in a PHP section it will use /* */.

I enjoyed this but didn't realize how much until I switched to TextMate and lost the functionality. Is there an easy way to do the same thing?

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

You can find the functionality in the bundles under Source - Comments: enter image description here

At least on my (German) keyboard the following works: Cmd-Shift-/, because the / is only available by pressing Shift-7. I can't really speak for other keyboards, but I guess Cmd-/ should therefore work on US ones, as the shortcut is the same.

link|improve this answer
It does work using Cmd-/ on international layouts. – Daniel Beck May 28 '11 at 12:44
great - thanks! i had another program conflicting with that key but after disabling it it started working great! :) – cwd May 28 '11 at 12:48
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.