comments

In a recent email exchange with Allan Odgaard, creator of TextMate, I asked if he had any suggestions for tips that would make for a good screencast. Allan mentioned that on the TextMate IRC, there are often questions about working with comments. And with that, he shared a list of tips that you” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”ll find in the video that follows.

There are five tips on working with comments, including toggling comments on/off, commenting a subset of a line, inserting comment blocks and a short section on how to insert todo lists inside a comment block.

Summary of tips:

  • Apple-/ Togggle comment
  • Alt-Apple-/ Comment a block and comment subset of a line
  • ” onclick=”return TrackClick(” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”,” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”javascript%3AlynkVideoPop%28719%2C” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”)”head” onclick=”return TrackClick(” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”,” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”javascript%3AlynkVideoPop%28719%2C” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”)” tab-key Insert comment header at top of file
  • Control-Shift-B Insert comment banner (top of declaration, function, etc)
  • ” onclick=”return TrackClick(” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”,” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”javascript%3AlynkVideoPop%28719%2C” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”)”todo” onclick=”return TrackClick(” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”,” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”javascript%3AlynkVideoPop%28719%2C” onclick=”return TrackClick(”,’javascript%3AlynkVideoPop%28719%2C’)”)” tab-key Insert todo block

Note: In order for these features to work, you will need to make sure the Source and TODO bundles are enabled within TextMate (see the video for more information).



The music in the video is J.J. Cale and the song: Call Me the Breeze.
Click to hear a longer clip of J.J. Cale: