TextMate cheat sheet

81 shortcuts in 12 lessons

Reading a list won't make them stick. ShortcutFoo has you type each shortcut, then brings it back just before you'd forget it.

Text Editing Beginner

6 shortcuts
  • ⌘Z
    Undo
  • ⌘⇧Z
    Redo
  • ⌘X
    Cut
  • ⌘C
    Copy
  • ⌘V
    Paste
  • ESC
    Autocomplete

Text Editing Intermediate

11 shortcuts
  • ⌘⇧V
    Paste previous
  • ⌘^⌥V
    Show clipboard history
  • ^⇧D
    Duplicate line
  • ⌘⌥E
    Free hand editing mode
  • ⌘⌥O
    Overwrite mode
  • ⌘/
    Comment line / selection
  • ^T
    Transpose characters
  • ^D
    Delete char on right
  • ⌘[
    Shift left
  • ⌘]
    Shift right
  • ⌘⌥]
    Align assignments

Text Editing Advanced I

8 shortcuts
  • ^U
    Convert to uppercase
  • ^⇧U
    Convert to lowercase
  • ^⌥U
    Convert to titlecase
  • ^G
    Convert to opposite case
  • ⌘^UP
    Move line up
  • ⌘^DOWN
    Move line down
  • ⌘^LEFT
    Move column left
  • ⌘^RIGHT
    Move column right

Text Editing Advanced II

8 shortcuts
  • ⌘⌥A
    Edit each line in selection
  • ^Q
    Reformat paragraph
  • ^J
    Reformat and justify
  • ^⌥Q
    Unwrap paragraph
  • ^R
    Execute line and insert result
  • ^⌥⇧V
    Send selection to pastie
  • ⌘⌥M
    Define new macro
  • ⌘⇧M
    Run macro

Text Navigation

6 shortcuts
  • ⌘^⌥UP
    Scroll up
  • ⌘^⌥DOWN
    Scroll down
  • ⌘^⌥LEFT
    Scroll left
  • ⌘^⌥RIGHT
    Scroll right
  • ^A
    Go to beginning of line
  • ^E
    Go to end of line

Find and Replace

9 shortcuts
  • ⌘F
    Find
  • ⌘⇧F
    Find in project
  • ⌘G
    Find next
  • ⌘⇧G
    Find previous
  • ⌘^F
    Replace all
  • ⌘^⇧F
    Replace all in selection
  • ⌘⌥F
    Replace and find
  • ⌘E
    Use selection for find
  • ^S
    Incremental Search

Show / Hide

7 shortcuts
  • ⌘⌥T
    Show special characters
  • ⌘⌥B
    Show/hide bookmarks
  • ⌘⌥L
    Show/hide line numbers
  • ⌘^⌥D
    Show/hide project drawer
  • ⌘⌥I
    Show/hide invisibles
  • ^⇧N
    Show document stats
  • ⌘^⌥P
    Show web preview

Source Code

6 shortcuts
  • ⌘⇧"
    Insert escaped double quotes
  • ^⇧B
    Insert comment banner
  • ⌘↵
    Insert new line
  • ⌘⌥;
    Insert ; at end of line
  • ⌘⇧↵
    Inert ; and new line
  • ^↵
    Insert \n

File Navigation

3 shortcuts
  • ⌘⌥UP
    Go to header / source
  • ⌘⌥DOWN
    Go to alternate file
  • ⌘L
    Go to line

Text Selection

3 shortcuts
  • ^W
    Select word
  • ⌘⇧L
    Select line
  • ^⌥B
    Select current scope

File Management

6 shortcuts
  • ⌘O
    Open
  • ⌘S
    Save
  • ⌘⇧S
    Save as
  • ⌘⌥S
    Save all
  • ⌘^S
    Save project
  • ⌘^⇧S
    Save project as

Misc

8 shortcuts
  • ⌘⇧:
    Spelling
  • ⌘;
    Check spelling
  • ⌘⌥;
    Check spelling while typing
  • ⌘^T
    Select bundle item
  • ⌘⇧+
    Increase font size
  • ⌘-
    Decrease font size
  • ^]
    Lookup definition
  • ⌘^R
    Reveal in project