Merge pull request #34 from joeldbirch/sublime

Add Sublime Text cheatsheet.
This commit is contained in:
Rico Sta. Cruz 2016-06-19 00:18:49 +08:00 committed by GitHub
commit b223efbeec
1 changed files with 37 additions and 0 deletions

37
sublime-text.md Normal file
View File

@ -0,0 +1,37 @@
---
title: Sublime Text
category: Apps
---
### Select & Expand
| `⌘ D` | select current word (repeat to include next instance of word) |
| `⌘ L` | select current line (repeat to include next line) |
| `⌘ ⇧ A` | select text inside tag (repeat to expand) |
| `Ctrl ⇧ M` | select to curly or angle brackets (repeat to expand) |
{:.shortcuts}
_Replace ⌘ with Ctrl on Windows and Linux._
### Code Folding
| `⌘ Option [` | fold closest block |
| `⌘ Option ]` | unfold closest block |
| `⌘ K, ⌘ 1` | fold all first level code blocks |
| `⌘ K, ⌘ 2` | fold all second level code blocks |
| `⌘ K, ⌘ 3 (etc)` | fold all third level code blocks (etc) |
| `⌘ K, ⌘ T` | fold all HTML attributes |
| `⌘ K, ⌘ 0` | unfold everything |
{:.shortcuts}
_Replace ⌘ with Ctrl on Windows and Linux._
### Goto
| `⌘ P` | goto anything |
| `⌘ P, :` | goto line number (enter number after `:`) |
| `⌘ P, #` | goto and list fuzzy-matches of string (enter characters after `#`) |
| `⌘ P, @` | goto and list symbol (begin typing symbol name after `@`) |
{:.shortcuts}
_Replace ⌘ with Ctrl on Windows and Linux._