Difference between revisions of "Sublime Text cheat sheet"
Line 17: | Line 17: | ||
| Ctrl + Shift + L | | Ctrl + Shift + L | ||
| Cmd + Shift + L | | Cmd + Shift + L | ||
+ | | | ||
+ | |- | ||
+ | | Select current word | ||
+ | | Ctrl + D | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | Multiple select: find the next word like the selected and add to the multiple cursors. | ||
+ | | Ctrl + D | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | Multiple selection with Regexp | ||
+ | | Ctrl + F, <Select Regexp icon (.*)>, <type your regexp>, Alt + Enter | ||
+ | | Cmd + F, <Select Regexp icon (.*)>, <type your regexp>, Opt + F | ||
| | | | ||
|- | |- | ||
|} | |} | ||
+ | |||
+ | Cmd + F (Find) | ||
+ | Regexp: [^ ]+ (or \d+, or whatever you prefer) | ||
+ | Option + F (Find All) | ||
+ | Edit it |
Revision as of 15:59, 15 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 |
---|---|---|---|
Move line up | Ctrl + Shift + Up | Cmd + Shift + Up | Also works for Down |
Split selection in multiple lines | Ctrl + Shift + L | Cmd + Shift + L | |
Select current word | Ctrl + D | ||
Multiple select: find the next word like the selected and add to the multiple cursors. | Ctrl + D | ||
Multiple selection with Regexp | Ctrl + F, <Select Regexp icon (.*)>, <type your regexp>, Alt + Enter | Cmd + F, <Select Regexp icon (.*)>, <type your regexp>, Opt + F |
Cmd + F (Find) Regexp: [^ ]+ (or \d+, or whatever you prefer) Option + F (Find All) Edit it