问题
Is there a shortcut to highlight and comment code in textmate, rather than putting in the comments manually?
回答1:
If you have the Source
bundle installed:
⌘/
If you don't, go to TextMate
> Preferences
> Bundles
and check Source
.
回答2:
⌘/
comment/uncomment selection
回答3:
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