TextMate Developer's Cheat Sheet

Selection Movement ⌃W (Edit → Select Select current Word ⌘T Go To File (with smart search) → Word) ⇧⌘T Go To Symbol (function, class, etc) ⇧⌘L (Edit → Select Select current Line → Line) ⌃A, ⌃E Move to beginning/end of line ⇧⌘B (Edit → Select Select enclosing Smart Typing Pair (see ⌘L Move the caret to a specified line number → Enclosing Preference Items - braces, , curly Braces, ⇧⌘J (Navigation Moves the caret to the middle visible line Brackets) "<", ">", quotation marks, etc.) → Go to Middle on the screen ⌥⌘A (Text → Edit Allows you to insert text at the end of each line Visible Line) Each Line in in the current selection. ⌘], ⌘[,⌥⇥ and Indent and de-indent the current line or Selection) ⌥⇤ selection ⌃⇧ Duplicate the current line or selection Common Mode Commands Folding ⌘R Used in programming languages to run the F1 Fold/unfold current section current file ⌘B Used in programming and markup language to build the current file Completion ⇧↩ Creates a new function/method using the ⎋, ⇧⎋ Cycle through the list of available word current word completions for the current word ⌃↩ Insert a "descriptive" return (
in HTML, \n in most source) Menu Shorcuts ⌘↩ Move to end of line and insert a new line ⌃⎋ Brings up the Bundle Command (Gear) ⇧⌘↩ Move to end of line, insert appropriate line menu termination (;), and a new line ⌥F2 Brings up the Context Menu (like right ⌅ Insert a new line and begin a new "item" clicking the mouse) appropriate to context (new list item, new comment line, etc.) Editing Modes ⌃H Lookup the current word/selection in the ⌥ (with selection) Toggles column editing mode documentation ⌥⌘E (Edit → Allows the caret to move freely past end of ⌃⇧V Validate document (as appropriate) Mode → line and inside tab characters ⌘/ Comment/uncomment the current line/ Freehanded selection Editing) ⌃⇧O Open terminal in current document's directory Shell Integration ⌃R (Execute Line/ Run the current line as a shell command Searching Selection Inserting and insert the result ⌃S Incremental search (find as you type) Result) ⇧⌘F (Edit → Find Find in project ⌥⌘R (Text → Pipe the currently selected text (or entire → Find In Project) Filter through document) through a shell command Command…) ⌃⇧A Subversion commands Bookmarks ⌃⇧Z CVS commands ⌘F2 Add bookmark ⌃⇧M Mercurial commands F2, ⇧F2 Jump to next/previous bookmark ⌘D commands