TextMate Developer Cheat Sheet DEVELOPMENT
TEXTMATE
Build
⌘B
Statistics for document
Run
⌘R
Change font size
Documentation for word
⌃H
Validate syntax
⌃⇧V
(Web) preview
⌃⌥⌘P
⌃⇧N ⌘+/-
Goto file
⌘T
Toggle bookmark gutter
⌥⌘B
Goto line
⌘L
Toggle line numbers
⌥⌘L
Goto method/function
Toggle project drawer
⌃⌥⌘D ⌥⌘W
[⌘|⇧] F2
Toggle invisibles
⌥⌘I
Put carret to beginning of central line in viewport
Subversion menu
⌃⇧A
Spelling menu
⌘⇧;
Open terminal in CWD
⌃⇧O
Check spelling
⌘;
Check while typing
⌥⌘;
and insert the result
New project
⌃⌘N
Pipe selection or file
Save project [as]
⌃R
⌥⌘R
through a shell cmd
Save all open files Convert spaces-tabs
⌘⇧T
Center viewport on carret
Toggle soft wrap
Execute line as shell cmd
⌃⌘R
Reveal in project drawer
F1
Toggle code folding Bookmark management
NAVIGATION
⌘J
or selection (“jump”)
Scroll viewport Move to start/end of line
⌘⇧J ⌃⌥⌘[arrow]
⌃[A|E]
⌃⌘[⇧]S ⌥⌘S ⌃⌘⇧T
REGEX COMMAND
Word (code) completion
[⇧]⎋
TODOS
Highlight RE matches in
Restart TextMate
⌃⌘Q
Show TODO List
⌃⇧T
Insert new TODO
todo⇥
⌃⌥⌘X
file from clipb. or selection TextMate Developer Cheat Sheet
TextMate Developer Cheat Sheet CODE EDITING Select current scope Move to EOL, insert “;”, “:”, or “.”, and start a NL
MARKUP SPECIAL ⌃⌥B
New list item or continue
⌘⇧
Insert “
” or “\n”
⌃”
Wrap selection (in tag)
Comment toggle
⌘/
Close current (tag)
Insert block comment
⌥⌘/
Insert tag (using select.)
Insert comment banner
⌃⇧B
Tidy XML/HTML
Code/line indent
⌘], ⌥⇥
Insert
Code/line dedent
⌘[, ⌥⇤
FIND AND REPLACE
⌃_
caMel/sn_ake/PasCal
Start new class
name⇧ class⇥
Start new def function
def⇥
⌥⌘. ⌃< ⌃⇧H ⌥⎵
⌘⇧L
Select enclosing pair
⌘⇧B
Move to EOL, start NL Edit at EOLs of all selected lines at once Duplicate select. or line Move selection or line Freehand editing beyond EOL and inside tabs
Find next/previous
[⇧]⌘G
Overwrite mode
Replace all Replace all in selection
⌃⌘V
Use selection for find
Paste previous
⌘⇧V
Use selection for replcae
TextMate Developer Cheat Sheet
⌃⇧W
Incremental search
⌃⌘F
⌃W
Select current line
[⇧]⌘F
Paste without reindent
⌃⌥⌘V
⌃
Select current word
Find manu for file/project
Replace and find
PASTING
Paste from clipb. history
⌅
comment block on NL
Toggle quotes (qw, ʼ, ”)
Start new method
GENERAL EDITING
Colum editing mode
⌘ ⌥⌘A ⌃⇧D ⌃⌘(arrow) ⌥⌘E ⌥⌘O ⌥(drag)
⌃⌘⇧F
Convert to uppercase
⌃U
⌥⌘F
Convert to lowercase
⌃⇧U
Convert to titlecase
⌃⌥U
⌘E ⌘⇧E ⌃[⇧]S
Swap case Sort lines in document
⌃G F5