Difference between revisions of "Sublime Text cheat sheet"
Line 9: | Line 9: | ||
! Comments |
! Comments |
||
|- |
|- |
||
| |
|||
⚫ | |||
===Basics=== |
|||
| || || |
|||
|- |
|||
⚫ | |||
| Ctrl + Shift + Up |
| Ctrl + Shift + Up |
||
| Cmd + Shift + Up |
| Cmd + Shift + Up |
||
| Also works for Down |
| Also works for Down |
||
|- |
|||
| Show console |
|||
| Ctrl + ` |
|||
| Cmd + ` |
|||
| |
|||
|- |
|||
| |
|||
===Multiple Selection=== |
|||
| || || |
|||
|- |
|||
| Select the current line |
|||
| Ctrl + L |
|||
| Cmd + L |
|||
| Repeat to select next line(s) |
|||
|- |
|- |
||
| Split selection in multiple lines |
| Split selection in multiple lines |
||
Line 19: | Line 37: | ||
| |
| |
||
|- |
|- |
||
| Select current word |
| Select the current word |
||
| Ctrl + D |
| Ctrl + D |
||
| |
| |
Revision as of 13:25, 16 October 2014
Sublime Text editor is the magic any programmer needs. Here I keep a cache of shortcuts for a quick reference.
Task | shortcut in Linux | shortcut in OSX | Comments |
---|---|---|---|
Basics |
|||
Move the current line up | Ctrl + Shift + Up | Cmd + Shift + Up | Also works for Down |
Show console | Ctrl + ` | Cmd + ` | |
Multiple Selection |
|||
Select the current line | Ctrl + L | Cmd + L | Repeat to select next line(s) |
Split selection in multiple lines | Ctrl + Shift + L | Cmd + Shift + L | |
Select the current word | Ctrl + D | ||
Multiple select: find the next word like the selected and add to the multiple cursors. | Ctrl + D | To skip the current word: Ctrl+K, Ctrl+D. To undo the last selection: Ctrl+U | |
Multiple select: find and select all words like the selected and add multiple cursors. | Alt + F3 | ||
Column selection |
|
||
Multiple selection with Regexp | Ctrl + F, <Select Regexp icon (.*)>, <type your regexp>, Alt + Enter | Cmd + F, <Select Regexp icon (.*)>, <type your regexp>, Opt + F |