TextMate Pro Tip: Use F2 for bookmarks

One of the things I love about TextMate is that it’s not an IDE, and it feels lightning fast. That said, sometimes I forget to use some of the powerful features in TM. Here’s one I decided to start using:

Cmd-F2 to toggle a bookmark

F2 to navigate to the next bookmark

Shift-F2 to navigate to the previous bookmark

How many times have you scrolled back and forth between two (or more) chunks of code using the mouse wheel, Cmd-F, Cmd-G, page up, page down, or the dreaded scrollbar drag which makes your “mouse mileage” go up?

Just use F2 and you can quickly flip between your bookmarks. Note: You can also use the mouse to toggle the “*” that appears on your bookmarked lines of code.

Pro Tip: On a Mac laptop, consider changing this setting: System Preferences -> Keyboard & Mouse -> Use all F1, F2, etc as standard function keys to “checked”. That way you won’t have to hit the “fn” key to use the magical F2!

Carpal tunnel syndrome be damned!!

  •