Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

TM Cheat Sheet

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

TextMate Developer’s Cheat Sheet

Selection Movement
⌃W (Edit → Select ⌘T Go To File (with smart search)
Select current Word
→ Word)
⇧⌘T Go To Symbol (function, class, etc)
⇧⌘L (Edit → Select current Line
Select → Line) ⌃A, ⌃E Move to beginning/end of line

⇧⌘B (Edit → Select enclosing Smart Typing Pair (see Preference ⌘L Move the caret to a specified line number
Select → Enclosing Items - braces, brackets, curly Braces, “<”, “>”,
quotation marks, etc.) ⇧⌘J (Navigation Moves the caret to the middle visible line on the
Brackets)
→ Go to Middle screen
⌥⌘A (Text → Edit Visible Line)
Allows you to insert text at the end of each line in
Each Line in the current selection. Indent and de-indent the current line or selection
⌘], ⌘[,⌥⇥, ⌥⇤
Selection)
⌃⇧D Duplicate the current line or selection
Menu Shorcuts

Searching ⌃⎋ Brings up the Bundle Command (Gear) menu

Incremental search (find as you type) ⌃⌘T Brings up a quick search list of bundle commands
⌃S
⌥F2 Brings up the Context Menu (like right clicking the mouse)
⇧⌘F (Edit → Find Find in project
→ Find In Project)

Shell Integration
Editing Modes ⌃R (Execute Line/ Run the current line as a shell command and insert the
Selection Inserting result
⌥ (with selection) Toggles column editing mode
Result)
⌥⌘E (Edit → ⌥⌘R (Text →
Mode → Allows the caret to move freely past end of line and inside Pipe the currently selected text (or entire document)
tab characters Filter through through a shell command
Freehanded
Command…)
Editing)

Common Mode Commands


Folding
Used in programming languages to run the current
F1 Fold/unfold current section ⌘R file
Used in programming and markup language to build
⌘B the current file
Bookmarks
Creates a new function/method using the current
⌘F2 Add bookmark ⇧↩ word
F2, ⇧F2 Jump to next/previous bookmark Insert a “descriptive” return (<br/> in HTML, \n
⌃↩ in most source)
⌘↩ Move to end of line and insert a new line
Completion
Move to end of line, insert appropriate line
Cycle through the list of available word completions for the ⇧⌘↩ termination (;), and a new line
⎋, ⇧⎋ current word
Insert a new line and begin a new “item”
⌅ appropriate to context (new list item, new comment
line, etc.)
Version Control
Lookup the current word/selection in the
⌃⇧A Subversion commands ⌃H documentation
⌃⇧Z CVS commands ⌃⇧V Validate document (as appropriate)
⌃⇧M Mercurial commands ⌘/ Comment/uncomment the current line/selection
⌃⇧Z Darcs commands ⌃⇧O Open terminal in current document's directory

You might also like