Editing:
- Copy:
Command + C
- Cut:
Command + X
- Paste:
Command + V
- Cursor to end of line:
Command + Right Arrow
- Cursor to beginning of line:
Command + Left Arrow
- Cursor to end of word:
Option + Right/Left Arrow
- Duplicate line:
Command + Shift + D
- Move line up/down:
Command + Control + Up/down Arrow
- Select next matching text:
Highlight text + Command + D
repeat to select another match - Multiple cursors:
Command + Click as many times as needed
- Increase indent:
Commmand + ]
can select multiple lines at once - Decrease indent:
Command + [
can select multiple lines at once
View / File Management:
- Go to file:
Command + T
- Find:
Command + F
- Find and Replace:
Command + Shift + F
- Close sheet:
Command + W
- Close Sublime:
Command + Q
- Show / hide left sidebar:
Command + K then Command + B
- Two column view:
Command + Option + 2
I made a gist for switching between columns here - One column view:
Command + Option + 1
- Paste and match indentation:
Command + Shift + V
if your copied text has different indentation than where you're pasting, it will automatically indent - Multiple cursors in a line:
Option + Click and drag down
great for adding the same HTML tag in front of multiple lines (like an <li> tag - Select from cursor to end of line:
Command + Shift + Right Arrow
- Select from cursor to end of paragraph:
Command + Shift + Right Arrow
then continue to hold Shift and release Command then tap down arrow as many times as needed. - Insert tags around selection
Highlight text + Control + Shift + W
- Interactive keyboard shortcut visualization (still work in progress): ShortcutMapper
- Great tutorial of some more advanced shortcuts with GIFs to see them in action: http://viget.com/extend/my-overused-sublime-text-keyboard-shortcuts
- Practice Sublime shortcuts here: https://www.shortcutfoo.com/