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 | Command + O | Open File | |
Ctrl + S | Command + S | Save File | |
Ctrl + W | Command + W | Close File | |
Ctrl + Shift + T | Command + Shift + T | Open recently closed file | |
Ctrl + KB | Command + KB | Toggle sidebar | |
Ctrl + Alt + P | Command + Ctrl + P | Switch project | |
Ctrl + +/- | Command + +/- | Font size | |
Ctrl + Shift + P | Command + Shift + P | Command pallette | |
Ctrl + Alt + C | Ctrl + ` | Toggle console | |
F11 | Command + Ctrl + F | Fullscreen | |
Shift + F11 | Command + Ctrl + Shift + F | Distraction free fullscreen | |
Alt + Number | Command + Number | Change tab | |
Ctrl + PageUp/Down | Command + Alt + Left/Right | Navigate through tabs | |
Ctrl + Space | Ctrl + Space | Show autocomplete suggestions | |
Layout | |||
Alt + Shift + (1-4) | Command + Alt + (1-4) | Select column layouts | |
Alt + Shift + 5 | Command + Alt + 5 | Select 4 grid layout | |
Alt + Shift + (8,9) | Command + Alt + Shift + (2,3) | Select two or three row layouts | |
Ctrl + Number | Ctrl + Number | Move to panel | |
Ctrl + Shift + Number | Ctrl + Shift + Number | Move file to panel | |
Finding Things | |||
Ctrl + F | Command + F | Find | |
Ctrl + Shift + F | Command + Shift + F | Find in files | |
Ctrl + H | Command + Alt + F | Find and replace | |
Ctrl + I | Command + I | Incremental search | |
Tab | Navigate through the search panel | ||
Escape | Close search | ||
Ctrl + P | Command + P | Goto anything | |
Ctrl + G | Ctrl + G | Goto line number | |
Ctrl + R | Command + R | Goto symbol | |
Ctrl + P + write # | Command + P + write # | Go to word | |
Enter (or F3) | Enter | Find next | |
Shift + Enter (or F3) | Shift + Enter | Find previous | |
Alt + F3 | Ctrl + Command + G | Find all | |
Selections / Moving Around | |||
Ctrl + Left/Right | Ctrl + Left/Right | Jump words/characters | |
Ctrl + Shift + Left/Right | Ctrl + Shift + Left/Right | Moving around and selecting | |
Ctrl + D | Command + D | Add next occurrence to selection | |
Ctrl + Shift + Space | Command + Shift + Space | Add scope to selection | |
Alt + F3 | Ctrl + Command + G | Add all occurences to selection | |
Ctrl + Shift + M | Ctrl + Shift + M | Select contents inside parenthesis | |
Ctrl + Shift + J | Command + Shift + J | Expand selection to indentation | |
Ctrl + Shift + A | Command + Shift + A | Expand selection to tag | |
Ctrl + M | Go to closing/opening parenthesis | ||
Escape | Back to single selection | ||
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 | Command | Add to mouse selection | |
Alt | Command + Shift | Subtract from mouse selection | |
Multiple Cursors | |||
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 | Single cursor | ||
Editing | |||
Ctrl + C | Command + C | Copy line/selection | |
Ctrl + X | Command + X | Cut line/selection | |
Ctrl + V | Command + V | Paste | |
Ctrl + Shift + V | Command + Shift + V | Paste with indentation | |
Ctrl + Shift + K | Delete line | ||
Ctrl + K K | Command + K K | Delete from cursor to end of line | |
Ctrl + K Backspace | Command + K Backspace | Delete from cursor to beginning of line | |
Ctrl + Shift + D | Command + Shift + D | Duplicate line/selection | |
Ctrl + L | Command + L | Select line | |
Ctrl + Shift + Up/Down | Command + Ctrl + Up/Down | Move line up/down | |
Ctrl + Enter | Command + Enter | Insert line after | |
Ctrl + Shift + Enter | Command + Shift + Return | Insert line before | |
Ctrl + J | Command + J | Join next line end of the current line | |
Ctrl + T | Transpose | ||
Ctrl + K,Ctrl + U | Command + K,Command + U | Uppercase | |
Ctrl + K,Ctrl + L | Command + K,Command + L | Lowercase | |
Ctrl + 9 | Command + ] | Indent lines | |
Ctrl + 8 | Command + [ | Unindent lines | |
Ctrl + Del | Delete word forward | ||
Ctrl + Backspace | Delete word backwards | ||
Alt + . | Command + Alt + . | Close tag | |
Commenting | |||
Ctrl + 7 | Command + \ | Comment line | |
Ctrl + Shift + 7 | Command + Shift + \ | Block comment line | |
Bookmarks | |||
Ctrl + F2 | Command + F2 | Add/remove bookmark | |
F2 | Goto next bookmark | ||
Shift + F2 | Goto previous bookmark | ||
Alt + F2 | Alt + F5 | Select all bookmarks | |
Ctrl + Shift + F2 | Command + Shift + F2 | Clear bookmarks | |
Mark | |||
Ctrl + K Space | Command + K Space | Set mark | |
Ctrl + K X | Command + K X | Set new location | |
Ctrl + K A | Command + K A | Select to mark | |
Ctrl + K W | Command + K W | Delete to mark | |
Ctrl + K G | Command + K G | Delete mark | |
Misc | |||
F6 | Toggle spellchecking | ||
F9 | Sort lines |