Monday, November 21, 2011

How to comment source code in TextMate

Apple-/
Press the apple key and the forward slash, toggle comment

Alt-Apple-/
Comment a block. Also commet subset of a line

"head" tab-key
Type "head" and press tab. Insert a comment header at top of the file

Control-Shift-B
Insert a comment banner on the top of declarations, functions, etc.

"todo" tab-key
Type "todo" and press tab. Insert a todo bloack

Must enable Source and TODO in the Bundle filter list.

No comments:

Post a Comment