Sublime Text is not a strange name for those who have been coding programs for some time. It’s one of the greatest tools you can use to make your coding work as easy as possible. With a bunch of features included in the tool, you will never need to use any other tool for your coding.
To make your work even easier, the tool has got a number of keyboard shortcuts. These shortcuts let you jump to any feature of the tool without going through the hassle of clicking a number of buttons and so on.
The cheatsheet below should help you know these shortcuts so you can leverage them for your own benefit. Here you go:
Windows | Linux | Mac | Function |
---|---|---|---|
System and Files | |||
Ctrl + O | Ctrl + O | Command + O | Open File |
Ctrl + S | Ctrl + S | Command + S | Save File |
Ctrl + W | Ctrl + W | Command + W | Close File |
Ctrl + Shift + T | Ctrl + Shift + T | Command + Shift + T | Open recently closed file |
Ctrl + KB | Ctrl + KB | Command + KB | Toggle sidebar |
Ctrl + Alt + P | Ctrl + Alt + P | Command + Ctrl + P | Switch project |
Ctrl + +/- | Ctrl + +/- | Command + +/- | Font size |
Ctrl + Shift + P | Ctrl + Shift + P | Command + Shift + P | Command pallette |
Ctrl + Alt + C | Ctrl + Alt + C | Ctrl + ` | Toggle console |
F11 | F11 | Command + Ctrl + F | Fullscreen |
Shift + F11 | Shift + F11 | Command + Ctrl + Shift + F | Distraction free fullscreen |
Alt + Number | Alt + Number | Command + Number | Change tab |
Ctrl + PageUp/Down | Ctrl + PageUp/Down | Command + Alt + Left/Right | Navigate through tabs |
Ctrl + Space | Ctrl + Space | Ctrl + Space | Show autocomplete suggestions |
Layout | |||
Alt + Shift + (1-4) | Alt + Shift + (1-4) | Command + Alt + (1-4) | Select column layouts |
Alt + Shift + 5 | Alt + Shift + 5 | Command + Alt + 5 | Select 4 grid layout |
Alt + Shift + (8,9) | Alt + Shift + (8,9) | Command + Alt + Shift + (2,3) | Select two or three row layouts |
Ctrl + Number | Ctrl + Number | Ctrl + Number | Move to panel |
Ctrl + Shift + Number | Ctrl + Shift + Number | Ctrl + Shift + Number | Move file to panel |
Finding Things | |||
Ctrl + F | Ctrl + F | Command + F | Find |
Ctrl + Shift + F | Ctrl + Shift + F | Command + Shift + F | Find in files |
Ctrl + H | Ctrl + H | Command + Alt + F | Find and replace |
Ctrl + I | Ctrl + I | Command + I | Incremental search |
Tab | Tab | Tab | Navigate through the search panel |
Escape | Escape | Escape | Close search |
Ctrl + P | Ctrl + P | Command + P | Goto anything |
Ctrl + G | Ctrl + G | Ctrl + G | Goto line number |
Ctrl + R | Ctrl + R | Command + R | Goto symbol |
Ctrl + P + write # | Ctrl + P + write # | Command + P + write # | Go to word |
Enter (or F3) | Enter (or F3) | Enter | Find next |
Shift + Enter (or F3) | Shift + Enter (or F3) | Shift + Enter | Find previous |
Alt + F3 | Alt + F3 | Ctrl + Command + G | Find all |
Selections / Moving Around | |||
Ctrl + Left/Right | Ctrl + Left/Right | Ctrl + Left/Right | Jump words/characters |
Ctrl + Shift + Left/Right | Ctrl + Shift + Left/Right | Ctrl + Shift + Left/Right | Moving around and selecting |
Ctrl + D | Ctrl + D | Command + D | Add next occurrence to selection |
Ctrl + Shift + Space | Ctrl + Shift + Space | Command + Shift + Space | Add scope to selection |
Alt + F3 | Alt + F3 | Ctrl + Command + G | Add all occurrences to selection |
Ctrl + Shift + M | Ctrl + Shift + M | Ctrl + Shift + M | Select contents inside parenthesis |
Ctrl + Shift + J | Ctrl + Shift + J | Command + Shift + J | Expand selection to indentation |
Ctrl + Shift + A | Ctrl + Shift + A | Command + Shift + A | Expand selection to tag |
Ctrl + M | Ctrl + M | Ctrl + M | Go to closing/opening parenthesis |
Escape | Escape | Escape | Back to single selection |
Ctrl + K,Ctrl + C | Ctrl + K,Ctrl + C | Command + K,Command + C | Scroll to selection |
Middle Mouse Button | Right Mouse Button + Shift | Middle Mouse Button | Draw selection with mouse |
Ctrl | Ctrl | Command | Add to mouse selection |
Alt | Alt | Command + Shift | Subtract from mouse selection |
Multiple Cursors | |||
Ctrl + Shift + L | Ctrl + Shift + L | Command + Shift + L | Split selection into lines |
Ctrl + Alt + Up/Down | Alt + Shift + Up/Down | Ctrl + Shift + Up/Down | Add new cursor |
Escape | Escape | Escape | Single cursor |
Editing | |||
Ctrl + C | Ctrl + C | Command + C | Copy line/selection |
Ctrl + X | Ctrl + X | Command + X | Cut line/selection |
Ctrl + V | Ctrl + V | Command + V | Paste |
Ctrl + Shift + V | Ctrl + Shift + V | Command + Shift + V | Paste with indentation |
Ctrl + Shift + K | Ctrl + Shift + K | Ctrl + Shift + K | Delete line |
Ctrl + K K | Ctrl + K K | Command + K K | Delete from cursor to end of line |
Ctrl + K Backspace | Ctrl + K Backspace | Command + K Backspace | Delete from cursor to beginning of line |
Ctrl + Shift + D | Ctrl + Shift + D | Command + Shift + D | Duplicate line/selection |
Ctrl + L | Ctrl + L | Command + L | Select line |
Ctrl + Shift + Up/Down | Ctrl + Shift + Up/Down | Command + Ctrl + Up/Down | Move line up/down |
Ctrl + Enter | Ctrl + Enter | Command + Enter | Insert line after |
Ctrl + Shift + Enter | Ctrl + Shift + Enter | Command + Shift + Return | Insert line before |
Ctrl + J | Ctrl + J | Command + J | Join next line end of the current line |
Ctrl + T | Ctrl + T | Ctrl + T | Transpose |
Ctrl + K,Ctrl + U | Ctrl + K,Ctrl + U | Command + K,Command + U | Uppercase |
Ctrl + K,Ctrl + L | Ctrl + K,Ctrl + L | Command + K,Command + L | Lowercase |
Ctrl + 9 | Ctrl + 9 | Command + ] | Indent lines |
Ctrl + 8 | Ctrl + 8 | Command + [ | Unindent lines |
Ctrl + Del | Ctrl + Del | Ctrl + Del | Delete word forward |
Ctrl + Backspace | Ctrl + Backspace | Ctrl + Backspace | Delete word backwards |
Alt + . | Alt + . | Command + Alt + . | Close tag |
Commenting | |||
Ctrl + 7 | Ctrl + 7 | Command + \ | Comment line |
Ctrl + Shift + 7 | Ctrl + Shift + 7 | Command + Shift + \ | Block comment line |
Bookmarks | |||
Ctrl + F2 | Ctrl + F2 | Command + F2 | Add/remove bookmark |
F2 | F2 | F2 | Goto next bookmark |
Shift + F2 | Shift + F2 | Shift + F2 | Goto previous bookmark |
Alt + F2 | Alt + F5 | Alt + F5 | Select all bookmarks |
Ctrl + Shift + F2 | Ctrl + Shift + F2 | Command + Shift + F2 | Clear bookmarks |
Mark | |||
Ctrl + K Space | Ctrl + K Space | Command + K Space | Set mark |
Ctrl + K X | Ctrl + K X | Command + K X | Set new location |
Ctrl + K A | Ctrl + K A | Command + K A | Select to mark |
Ctrl + K W | Ctrl + K W | Command + K W | Delete to mark |
Ctrl + K G | Ctrl + K G | Command + K G | Delete mark |
Misc | |||
F6 | F6 | F6 | Toggle spellchecking |
F9 | F9 | F9 | Sort lines |
Subscribe to our newsletter!
Our latest tutorials delivered straight to your inbox