-->

How do I use a shortcut to comment out code automa

2020-08-10 04:49发布

问题:

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 "/"