0% found this document useful (0 votes)
91 views

Textmate Pocketmod

This document provides keyboard shortcuts for various commands and functions in the TextMate text editor. It includes shortcuts for commenting code, toggling between single and double quotes, validating code, wrapping selections in tags, navigating files and tabs, and cutting, copying, pasting and undo/redo. Additional shortcuts are provided for HTML, CSS, JavaScript, PHP and XML editing functions.

Uploaded by

xupisco
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views

Textmate Pocketmod

This document provides keyboard shortcuts for various commands and functions in the TextMate text editor. It includes shortcuts for commenting code, toggling between single and double quotes, validating code, wrapping selections in tags, navigating files and tabs, and cutting, copying, pasting and undo/redo. Additional shortcuts are provided for HTML, CSS, JavaScript, PHP and XML editing functions.

Uploaded by

xupisco
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

SOURCE HTML JAVASCRIPT

comment line / selection ⌘/ documentation ⌃H documentation ⌃H


lookup definition (ctags) ⌃] validate ⌃⇧V tab triggers ⇥
toggle single / double string quotes ⌃" tidy ⌃⇧H function, prototype
escaped double quotes: \"…\" ⌘" refresh browser ⌘R
escaped single quotes: \'…\' ⌥⌘" convert to entities / URL escapes ⌘& CSS
documentation ⌃H
insert comment banner ⌃⇧B insert open / close tag ⌃<
validate ⌃⇧V
continue line comment ⌅ insert close tag ⌥⌘.

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

You might also like