2
GENERAL new N new project ⌃⌘N open O save S save as ⇧⌘S save all ⌥⌘S save project ⌃⌘S save project as ⌃⇧⌘S reveal in project ⌃⌘R print P help ? undo Z redo ⇧⌘Z cut X copy C paste V paste without re-indent ⌃⌘V paste previous ⇧⌘V paste from clipboard history ⌃⌥⌘V duplicate line / selection ⌃⇧D freehand editing ⌥⌘E overwrite mode ⌥⌘O select word W select line ⇧⌘L select enclosing brackets ⇧⌘B select current scope ⌃⌥B select all A completion find F find in projet ⇧⌘F find next G find previous ⇧⌘G replace all ⌃⌘F replace all in selection ⌃⇧⌘F replace & find ⌥⌘F use selection for find E use selection for replace ⇧⌘E jump to selection J spelling : check spelling ; check spelling as you type ⌥⌘; special characters ⌥⌘T bigger / smaller font + and - show / hide bookmarks ⌥⌘B show / hide line numbers ⌥⌘L show / hide project drawer ⌃⌥⌘D soft wrap ⌥⌘W show / hide invisibles ⌥⌘I fold current block F1 convert to uppercase U convert to lowercase ⌃⇧U convert to titlecase ⌃⌥U convert to opposite case G move line up / down ⌃⌘↑ and ⌃⌘↓ move column left / right ⌃⌘← and ⌃⌘→ shift left ⌥⇥ or [ shift right ⌥⇤ or ] indent line ⌥⌘[ edit each line in selection ⌥⌘A reformat paragraph Q reformat and justify J unwrap paragraph ⌃⌥Q execute line inserting result R filter through command ⌥⌘R add / remove bookmark F2 go to next / previous bookmark F2 and F2 navigate tabs ⌥⌘← and ⌥⌘→ go to header / source ⌥⌘↑ go to file T go to symbol ⇧⌘T scroll line up / down ⌃⌥⌘↑ and ⌃⌥⌘↓ scroll column left / right ⌃⌥⌘← and ⌃⌥⌘→ go to line L go to middle visible line ⇧⌘J sort lines F5 statistics for document / selection ⌃⇧N select bundle item ⌃⌘T open bundle menu ⌃⎋ show web preview ⌃⌥⌘P 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

TEXTMATE cheat sheet - G-Designg-design.net/textmate.pdf · other commands new from template, ... TEXTMATE cheat sheet shortcuts - macro's - snippets - commmands. SOURCE comment line

Embed Size (px)

Citation preview

Page 1: TEXTMATE cheat sheet - G-Designg-design.net/textmate.pdf · other commands new from template, ... TEXTMATE cheat sheet shortcuts - macro's - snippets - commmands. SOURCE comment line

GENERALnew ⌘N

new project ⌃⌘N

open ⌘O

save ⌘S

save as ⇧⌘S

save all ⌥⌘S

save project ⌃⌘S

save project as ⌃⇧⌘S

reveal in project ⌃⌘R

print ⌘P

help ⌘?

undo ⌘Z

redo ⇧⌘Z

cut ⌘X

copy ⌘C

paste ⌘V

paste without re-indent ⌃⌘V

paste previous ⇧⌘V

paste from clipboard history ⌃⌥⌘V

duplicate line / selection ⌃⇧D

freehand editing ⌥⌘E

overwrite mode ⌥⌘O

select word ⌃W

select line ⇧⌘L

select enclosing brackets ⇧⌘B

select current scope ⌃⌥B

select all ⌘A

completion ⎋

find ⌘F

find in projet ⇧⌘F

find next ⌘G

find previous ⇧⌘G

replace all ⌃⌘F

replace all in selection ⌃⇧⌘F

replace & find ⌥⌘F

use selection for find ⌘E

use selection for replace ⇧⌘E

jump to selection ⌘J

spelling ⌘:

check spelling ⌘;

check spelling as you type ⌥⌘;

special characters ⌥⌘T

bigger / smaller font ⌘+ and ⌘-

show / hide bookmarks ⌥⌘B

show / hide line numbers ⌥⌘L

show / hide project drawer ⌃⌥⌘D

soft wrap ⌥⌘W

show / hide invisibles ⌥⌘I

fold current block F1

convert to uppercase ⌃U

convert to lowercase ⌃⇧U

convert to titlecase ⌃⌥U

convert to opposite case ⌃G

move line up / down ⌃⌘↑ and ⌃⌘↓

move column left / right ⌃⌘← and ⌃⌘→

shift left ⌥⇥ or ⌘[

shift right ⌥⇤ or ⌘]

indent line ⌥⌘[

edit each line in selection ⌥⌘A

reformat paragraph ⌃Q

reformat and justify ⌃J

unwrap paragraph ⌃⌥Q

execute line inserting result ⌃R

filter through command ⌥⌘R

add / remove bookmark ⌘F2

go to next / previous bookmark F2 and ⇧F2

navigate tabs ⌥⌘← and ⌥⌘→

go to header / source ⌥⌘↑

go to file ⌘T

go to symbol ⇧⌘T

scroll line up / down ⌃⌥⌘↑ and ⌃⌥⌘↓

scroll column left / right ⌃⌥⌘← and ⌃⌥⌘→

go to line ⌘L

go to middle visible line ⇧⌘J

sort lines F5

statistics for document / selection ⌃⇧N

select bundle item ⌃⌘T

open bundle menu ⌃⎋

show web preview ⌃⌥⌘P

tab triggers ⇥lorem, isoD, c)

other commandsnew from template, re-open with encoding, spaces 2 tabs, terminal usage

TEXTMATE cheat sheetshortcuts - macro's - snippets - commmands

Page 2: TEXTMATE cheat sheet - G-Designg-design.net/textmate.pdf · other commands new from template, ... TEXTMATE cheat sheet shortcuts - macro's - snippets - commmands. SOURCE comment line

SOURCEcomment line / selection ⌘ /

lookup definition (ctags) ⌃]

toggle single / double string quotes ⌃"

escaped double quotes: \"…\" ⌘"

escaped single quotes: \'…\' ⌥⌘"

insert comment banner ⌃⇧B

continue line comment ⌅

move to EOL and insert LF ⌘↩

move to EOL and insert “;” ⌥⌘↩

move to EOL and insert “;” + LF ⇧⌘↩

newline: \n ⌃↩

convert spaces to tabs ⌃⇧⌘T

convert source to HTML ⌃⇧H

view source as HTML ⌃⌥⌘P

tab triggers ⇥head

other commandsview source as PDF

APACHEsearch on apache.org ⌃H

tab triggers ⇥allow, opt, vhost

other commandsstart, stop, restart, graceful, open httpd.conf, open config for user, tail acces log, tail errro log

HTMLdocumentation ⌃H

validate ⌃⇧V

tidy ⌃⇧H

refresh browser ⌘R

convert to entities / URL escapes ⌘&

insert open / close tag ⌃<

insert close tag ⌥⌘.

wrap selection in open / close tag ⌃⇧W

wrap each selected line in tag ⌃⇧⌘W

wrap selection as link ⌃⇧L

non breaking space ⌥☐

br ⌃↩

strong ⌘B

emphasize ⌘I

tab triggers ⇥doctype, movie, input, textarea, mailto, base, body, div, form, h1, head, link, meta, scriptsrc, script, style, table, title

other commandsopen document in browser, strip html tags

XMLvalidate ⌃⇧V

tidy ⌃⇧H

tab triggers ⇥xml, <a, <, >

JAVASCRIPTdocumentation ⌃H

tab triggers ⇥function, prototype

CSSdocumentation ⌃H

validate ⌃⇧V

preview ⌃⌥⌘P

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 commandsinsert color

PHPdocumentation ⌃H

validate ⌃⇧V

continue block comment ⌅

run ⇧⌘R

tab triggers php ⇥$_, -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

TEXTMATE cheat sheetshortcuts - macro's - snippets - commmands