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