记录下Sublime Text Mac版的快捷键【转】
- 推荐使用最新版本的Chrome/Safari或者Firefox浏览器浏览此页,否则Mac按键可能无法正常展示
- The Latest Version of Chrome/Safari or Firefox is Recommeded.
| Keypress | Command |
|---|---|
| ⌘ + X | Delete line |
| ⌃ + ⇧ + K | Delete 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 |
| ⌘ + K, ⌘ + K | Delete from cursor to end of line |
| ⌃ + 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 |
| ⌘ + Z | Undo |
| ⌘ + Y | Redo insert snippet |
| ⌘ + U | Soft undo; jumps to your last change before undoing change when repeated |
| ⌘ + ⇧ + U | Soft redo (movement redo) |
| ⌃ + T | Swap two letters or, better yet, two words |
| ————————— |
Navigation/Goto Anywhere
| Keypress | Command |
|---|---|
| ⌘ + P | Quick-open files by name |
| ⌘ + R | Goto symbol、go to methods |
| ⌃ + G | Goto line in current file |
| ⌘ + T | Go to file |
| ⌘ + ⌃ + P | Go to project |
| ⌘ + Left/Right | Go to Beginning or End of Line |
| ⌥ + Left/Right | Move between words |
| ⌃ + L | Scroll to selection |
| ⌃ + M | Jump to matching bracket |
| ⌃ + Tab | Next file in stack |
| ⌃ + ⇧ + Tab | Previous file in stack |
| ————————— |
General
| Keypress | Command |
|---|---|
| ⌘ + ⇧ + P | Command prompt, Command palette |
| ⌘ + K, ⌘ + B | Toggle side bar |
| ⌃ + ⇧ + P | Show scope in status bar |
| ⌃ + ` | Python console |
| ⌘ + = | Larger Text |
| ⌘ + - | Smaller Text |
| ⌘ + ⌃ + F | Enter full screen |
| ⌘ + ⇧ + ⌃ + F | Enter distraction free mode |
| ⌘ + M | Minimize |
| ⌥ + ⌘ + M | Minimize all |
| ⌃ + Q | Record macro |
| ⌃ + ⇧ + Q | Play back macro |
| ————————— |
Find/Replace
| Keypress | Command |
|---|---|
| ⌘ + F | Find |
| ⌘ + ⌥ + F | Replace |
| ⌘ + ⌥ + E | Replace next |
| ⌘ + ⇧ + F | Find in files |
| ⌘ + ⌥ + G, ⌘ + G | Find next occurrence of current word |
| ⌘ + ⇧ + G | Find previous occurrence of current word |
| ⌘ + ⌃ + G | Select all occurrences of current word for multiple editing |
| ⌘ + I | Incremental find |
| ⌘ + D | Quick add next |
| ⌘ + E | Use selection for find |
| ⌘ + ⇧ + E | Use selection for replace |
| ————————— |
File Operation
| Keypress | Command |
|---|---|
| ⌘ + N | New file |
| ⌘ + O | Open file |
| ⌘ + ⇧ + T | Reopen closed file |
| ⌘ + S | Save file |
| ⌘ + ⇧+ S | Save as… |
| ⌘ + ⌥ + S | Save all |
| ⌘ + ⇧+ N | New window |
| ⌘ + ⇧+ W | Close window |
| ⌘ + W | Close file |
| ————————— |
Selection
| Keypress | Command |
|---|---|
| ⇧ + ⌃ + ↑ | Add previous line |
| ⇧ + ⌃ + ↓ | Add next line |
| ⌘ + A | Select all |
| ⌘ + L | Expand selection to line |
| ⌘ + D | Expand selection to word |
| ⌃ + ⇧+ M | Expand selection to brackets |
| ⌘ + ⇧+ J | Expand selection to indentation |
| ⌘ + ⇧+ A | Expand selection to Tag |
| ⌘ + ⇧+ L | Select lines, and then split it into many selections, one per line |
| ⇧ + Left/Right | Add or remove word selection |
| Esc | Go from multiple selections to a single selection |
| ————————— |
Tabs
| Keypress | Command |
|---|---|
| ⌘ + ⇧ + t | Open last closed tab |
| ⌘ + ⌥ + ← | Cycle up through tabs |
| ⌘ + ⌥ + ➝ | Cycle down through tabs |
| ————————— |
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 |
| ⌘ + [1,2,3…] | Select tab |
| ————————— |
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 |
| F5 | Sort lines |
| ⌃ + F5 | Sort lines(case sensitive) |
| ⌘ + ⌥ + T | Special characters |
| ————————— |
XML/HTML
| Keypress | Command |
|---|---|
| ⌘ + ⇧ + A | Select content into tag |
| ⌘ + ⌥ + . | Close tag |
| ⌃ + ⇧ + W | Wrap the selected text in the HTML tag |
| ————————— |
Marks
| Keypress | Command |
|---|---|
| ⌘ + K + space | Set mark // ⌘K; for me |
| ⌘ + K + W | Delete from cursor to mark |
| ⌘ + K + A | Select from cursor to mark |
| ⌘ + K + G | Clear mark |
| ————————— |
REF:

浙公网安备 33010602011771号