Learn TextMate Shortcuts for macOS
Most Used TextMate Shortcuts
| Action | TextMate Shortcuts |
|---|
| New | Command + N |
| New project | Control + Command + N |
| Open | Command + O |
| Save | Command + S |
| Save as | Shift + Command + S |
| Save all | Option + Command + S |
| Save project | Control + Command + S |
| Save project as | Control + Shift + Command + S |
| Reveal in project | Control + Command + R |
| Print | Command + P |
| Help | Command + ? |
| Undo | Command + Z |
| Redo | Shift + Command + Z |
| Cut | Command + X |
| Copy | Command + C |
| Paste | Command + V |
| Paste without re-indenting | Control + Command + V |
| Paste previous | Shift + Command + V |
| Paste from the clipboard history | Control + Option + Command + V |
| Duplicate line / selection | Command + Shift + D |
| Freehand editing | Option + Command + E |
| Overwrite mode | Option + Command + O |
| Select word | Control + W |
| Select line | Shift + Command + L |
| Select enclosing brackets | Shift + Command + B |
| Select current scope | Control + Option + B |
| Select all | Command + A |
| Completion | Esc |
| Find | Command + F |
| Find in project | Shift + Command + F |
| Find next | Command + G |
| Find previous | Shift + Command + G |
| Replace all | Control + Command + F |
| Replace all in selection | Control + Shift + Command + F |
| Replace & find | Option + Command + F |
| Use selection for find | Command + E |
| Use selection for replace | Shift + Command + E |
| Jump to selection | Command + J |
| Spelling | Command + : |
| Check spelling | Command + ; |
| Check spelling as you type | Option + Command + ; |
| Special characters | Option + Command + T |
| Bigger font | Command + + |
| Smaller font | Command + – |
| Show / hide bookmarks | Option + Command + B |
| Show / hide line numbers | Option + Command + L |
| Show / hide project drawer | Control + Option + Command + D |
| Soft wrap | Option + Command + W |
| Show / hide invisibles | Option + Command + I |
| Fold current block | F1 |
| Convert to uppercase | Control + U |
| Convert to lowercase | Control + Shift + U |
| Convert to title case | Control + Option + U |
| Convert to opposite case | Control + G |
| Move line up / down | Control + Command + Up & Down Arrow Key |
| Move column left / right | Control + Command + Left & Right Arrow Key |
| Shift left | Option + Tab |
| Shift right | Option + BackTab |
| Indent line | Option + Command + [ |
| Edit each line in selection | Option + Command + A |
| Reformat paragraph | Control + Q |
| Reformat and justify | Control + J |
| Unwrap paragraph | Control + Option + Q |
| Execute line inserting result | Control + R |
| Filter through command | Option + Command + R |
| Add / remove bookmark | Command + F2 |
| Go to next bookmark | F2 |
| Go to previous bookmark | Shift + F2 |
| Navigate tabs | Option + Command + Left & Right Arrow Key |
| Go to header / source | Option + Command + Up Arrow Key |
| Go to file | Command + T |
| Go to symbol | Shift + Command + T |
| Scroll line up / down | Control + Option + Command + Up & Down Arrow Key |
| Scroll column left / right | Control + Option + Command + Left & Right Arrow Key |
| Go to line | Command + L |
| Go to middle visible line | Shift + Command + J |
| Sort lines | F5 |
| Statistics for document / selection | Control + Shift + N |
| Select bundle item | Control + Command + T |
| Open bundle menu | Control + Esc |
| Show web preview | Control + Option + Command + P |
Source Shortcuts
| Action | TextMate Shortcuts |
|---|
| Comment line / selection | Command + / |
| Lookup definition (ctags) | Control + ] |
| Toggle single / double string quotes | Control + “ |
| Escaped double quotes: \”…\” | Command + “ |
| Escaped single quotes: \’…\’ | Option + Command + “ |
| Insert comment banner | Control + Shift + B |
| Continue line comment | Enter |
| Newline: \n | Command + Enter |
| Convert spaces to tabs | Control + Shift + Command + T |
| Convert source to HTML | Control + Shift + H |
| View source as HTML | Control + Option + Command + P |
HTML Shortcuts
| Action | TextMate Shortcuts |
|---|
| Documentation | Control + H |
| Validate | Control + Shift + V |
| Tidy | Control + Shift + H |
| Refresh browser | Command + R |
| Convert to entities / URL escapes | Command + & |
| Insert open / close tag | Control + < |
| Insert close tag | Option + Command + . |
| Wrap selection in open / close tag | Control + Shift + W |
| Wrap each selected line in tag | Control + Shift + Command + W |
| Wrap selection as link | Control + Shift + L |
| Non breaking space | Option + Spacebar |
| br | Control + Enter |
| Strong | Command + B |
| Emphasize | Command + I |
PHP Shortcuts
| Action | TextMate Shortcuts |
|---|
| Documentation | Control + H |
| Validate | Control + Shift + V |
| Continue block comment | Enter |
| Run | Shift + Command + R |
Download TextMate Shortcuts PDFREAD NEXT: