From 2de9af8e02789b8ddc114c83f0b4bfe9d420fb40 Mon Sep 17 00:00:00 2001 From: Joel Birch Date: Sat, 18 Jun 2016 15:15:03 +1000 Subject: [PATCH] Add Sublime Text cheatsheet. --- sublime-text.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 sublime-text.md diff --git a/sublime-text.md b/sublime-text.md new file mode 100644 index 000000000..faa5ce710 --- /dev/null +++ b/sublime-text.md @@ -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._