Keyboard Shortcuts - OSX¶
Warning
Development of Sublime Text has moved on to version 3.
As a result,
this branch for Sublime Text 2
will not be updated any more.
Please select the latest
branch
in the panel on the bottom left
and consider updating Sublime Text.
Warning
This topic is a draft and may contain wrong information.
Editing¶
Keypress | Command |
---|---|
⌘ + X | Cut line |
⌘ + ↩ | Insert line after |
⌘ + ⇧ + ↩ | Insert line before |
⌘ + ⌃ + ↑ | Move line/selection up |
⌘ + ⌃ + ↓ | Move line/selection down |
⌘ + L | Select line - Repeat to select next lines |
⌘ + D | Select word - Repeat select others occurrences |
⌃ + M | Jump to closing parentheses Repeat to jump to opening parentheses |
⌃ + ⇧ + M | Select all contents of the current parentheses |
⌘ + K, ⌘ + K | Delete from cursor to end of line |
⌘ + K + ⌫ | Delete from cursor to start of line |
⌘ + ] | Indent current line(s) |
⌘ + [ | Un-indent current line(s) |
⌘ + ⇧ + D | Duplicate line(s) |
⌘ + J | Join line below to the end of the current line |
⌘ + / | Comment/un-comment current line |
⌘ + ⌥ + / | Block comment current selection |
⌘ + Y | Redo, or repeat last keyboard shortcut command |
⌘ + ⇧ + V | Paste and indent correctly |
⌃ + Space | Select next auto-complete suggestion |
⌃ + U | Soft undo; jumps to your last change before undoing change when repeated |
⌃ + ⇧ + Up | Column selection up |
⌃ + ⇧ + Down | Column selection down |
General¶
Keypress | Command |
---|---|
⌘ + ⇧ + P | Command prompt |
⌘ + K, ⌘ + B | Toggle side bar |
⌃ + ⇧ + P | Show scope in status bar |
Find/Replace¶
Keypress | Command |
---|---|
⌘ + F | Find |
⌘ + ⌥ + F | Replace |
⌘ + ⇧ + F | Find in files |
Tabs¶
Keypress | Command |
---|---|
⌘ + ⇧ + t | Open last closed tab |
^ + Tab | Cycle up through tabs |
⇧ + ^ + Tab | Cycle down through tabs |
Find in files |
Split window¶
Keypress | Command |
---|---|
⌘ + ⌥ + 2 | Split view into two columns |
⌘ + ⌥ + 1 | Revert view to single column |
⌘ + ⌥ + 5 | Set view to grid (4 groups) |
⌃ + [NUM] | Jump to group where num is 1-4 |
⌃ + ⇧ + [NUM] | Move file to specified group where num is 1-4 |
Bookmarks¶
Keypress | Command |
---|---|
⌘ + F2 | Toggle bookmark |
F2 | Next bookmark |
⇧ + F2 | Previous bookmark |
⇧ + ⌘ + F2 | Clear bookmarks |
Text manipulation¶
Keypress | Command |
---|---|
⌘ + K, ⌘ + U | Transform to Uppercase |
⌘ + K, ⌘ + L | Transform to Lowercase |