Is there a shortcut to highlight and comment code in textmate, rather than putting in the comments manually?
tamasgal
If you have the Source
bundle installed:
⌘/
If you don't, go to TextMate
> Preferences
> Bundles
and check Source
.
⌘/
comment/uncomment selection
shift + ⌘ + 7 or instead 7 the key with the slash "/"
来源:https://stackoverflow.com/questions/8256834/how-do-i-use-a-shortcut-to-comment-out-code-automatically-in-textmate