Jun 10 2008

TextMate: Working with Comments

Published by john at 6:30 am under TextMate

  
  

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’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
  • “head” tab-key Insert comment header at top of file
  • Control-Shift-B Insert comment banner (top of declaration, function, etc)
  • “todo” 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:

Technorati Tags: ,

4 Responses to “TextMate: Working with Comments”

  1. yachrison 10 Jun 2008 at 3:56 pm

    Hey — just found out about this site, and THANKS MUCHLY for the great screencasts!

    I do have one minor request — since I listen with headphones, so the difference between the music sound level and the voice sound level is really unpleasant.

  2. johnon 10 Jun 2008 at 4:04 pm

    I apologize for the volume problem, that’s been a trouble spot for a long time. Seems getting a consistent volume for recording voice and then matching that to the music is a challenge to say the least (at least using the no-frills mic/software I have)…but something I will continue to tweak.

    Thanks for the comment and glad you enjoy the videos.

  3. anonymouson 21 Jun 2008 at 5:25 pm

    You’re a window$ user!
    sys/time.h, not sys\time.h !!

  4. johnon 21 Jun 2008 at 7:53 pm

    Anonymous…the code in the video is a legacy application I wrote in C somewhere around 1989, it was actually written for DOS.

Trackback URI | Comments RSS

Leave a Reply