TEXTMATE cheat sheet shortcuts - macro's - snippets - commmands GENERAL new new project
completion ⌘N ⌃⌘N
find find in projet
open
⌘O
find next
save
⌘S
find previous
save as
⇧⌘S
replace all
save all
⌥⌘S
replace all in selection
save project
⌃⌘S
replace & find
save project as reveal in project
⌃⇧⌘S ⌃⌘R
use selection for find use selection for replace
⎋ ⌘F ⇧⌘F ⌘G
shift left
⌥⇥ or ⌘[
shift right
⌥⇤ or ⌘] ⌥⌘[
indent line
⌥⌘A
edit each line in selection
⇧⌘G
reformat paragraph
⌃Q
⌃⌘F
reformat and justify
⌃J
⌃⇧⌘F ⌥⌘F ⌘E ⇧⌘E
⌃⌥Q
unwrap paragraph
⌃R
execute line inserting result filter through command
⌥⌘R
add / remove bookmark
⌘F2
print
⌘P
jump to selection
⌘J
go to next / previous bookmark
help
⌘?
spelling
⌘:
navigate tabs
undo
⌘Z
check spelling
⌘;
go to header / source
redo
⇧⌘Z
check spelling as you type
⌥⌘;
go to file
⌥⌘T
go to symbol
cut
⌘X
special characters
copy
⌘C
bigger / smaller font
paste
⌘V
show / hide bookmarks
⌥⌘B
scroll column left / right
⌥⌘L
go to line
paste without re-indent
⌃⌘V
show / hide line numbers
paste previous
⇧⌘V
show / hide project drawer
paste from clipboard history
⌃⌥⌘V
soft wrap
duplicate line / selection
⌃⇧D
show / hide invisibles
freehand editing
⌥⌘E
fold current block
overwrite mode
⌥⌘O ⌃W
select word
⌥⌘W
⌘T ⇧⌘T ⌃⌥⌘↑ and ⌃⌥⌘↓ ⌃⌥⌘← and ⌃⌥⌘→ ⌘L ⇧⌘J
go to middle visible line sort lines
F5
F1
select bundle item
⌃⌘T
convert to uppercase
⌃U
open bundle menu
⌃⎋
convert to lowercase
⌃⇧U
show web preview
⌃⌥⌘P
⌃⌥U
convert to titlecase
select enclosing brackets
⇧⌘B
convert to opposite case
select current scope
⌃⌥B
move line up / down move column left / right
⌥⌘I
⌥⌘↑
⌃⇧N
⇧⌘L
⌘A
⌃⌥⌘D
scroll line up / down
⌥⌘← and ⌥⌘→
statistics for document / selection
select line
select all
⌘+ and ⌘-
F2 and ⇧F2
⌃G ⌃⌘↑ and ⌃⌘↓ ⌃⌘← and ⌃⌘→
tab triggers lorem, isoD, c)
other commands new from template, re-open with encoding, spaces 2 tabs, terminal usage
⇥
TEXTMATE cheat sheet shortcuts - macro's - snippets - commmands SOURCE
HTML
comment line / selection
⌘/
lookup definition (ctags)
⌃]
JAVASCRIPT ⌃H
documentation
⌃⇧V
validate
toggle single / double string quotes
⌃"
tidy
⌃⇧H
escaped double quotes: \"…\"
⌘"
refresh browser
⌘R
escaped single quotes: \'…\'
⌥⌘"
convert to entities / URL escapes
⌘&
insert comment banner
⌃⇧B
insert open / close tag
⌃<
continue line comment
⌅
insert close tag
move to EOL and insert LF
⌘↩
move to EOL and insert “;”
⌥⌘↩
wrap each selected line in tag
move to EOL and insert “;” + LF
⇧⌘↩
wrap selection as link
newline: \n convert spaces to tabs convert source to HTML view source as HTML
tab triggers
⌃↩ ⌃⇧⌘T ⌃⇧H ⌃⌥⌘P ⇥
head
wrap selection in open / close tag
view source as PDF
⇥
function, prototype
CSS documentation
⌃⇧W
preview
⌃⌥⌘P
⌃⇧⌘W ⌃⇧L
non breaking space
⌥☐
br
⌃↩
strong
⌘B ⌘I
emphasize
tab triggers
tab triggers
⇥ background, border, clear, color, cursor, direction, display, font, float, letter, list, margin, marker, opacity, overflow, padding, position, text, vertical, visibility, white, word, z, {
other commands insert color
⇥
PHP documentation validate
run
⇥
allow, opt, vhost
other commands start, stop, restart, graceful, open httpd.conf, open config for user, tail acces log, tail errro log
⌃H ⌃⇧V ⌅
continue block comment
APACHE ⌃H
⌃H ⌃⇧V
open document in browser, strip html tags
tab triggers
tab triggers
validate
other commands
search on apache.org
⌃H
⌥⌘.
doctype, movie, input, textarea, mailto, base, body, div, form, h1, head, link, meta, scriptsrc, script, style, table, title
other commands
documentation
⇧⌘R
tab triggers php
XML validate
⌃⇧V
tidy
⌃⇧H
tab triggers xml,
⇥
⇥ $_, -globals, php, class, def, def?, do, else, elseif, for, foreach, function, if, ifelse, if?, incl, incl1, array, print, req, req1, retres, retret, ret0, ret1, case, switch, while
tab triggers phpdoc doc_c, doc_cp, doc_d, doc_dp, doc_f, doc_fp, doc_h, doc_i, doc_s, doc_v, doc_vp