⌃ Control
⌥ Option
⌘ Command
⇧ Shift
⎋ Escape
⌅ Enter
↩ Return
⌦ Forward Delete
⌫ Backward Delete
﹖⃝ Help
↖ Home
↘ End
⇞ Page Up
⇟ Page Down
⇥ Tab
⇤ Back-tab
HTML BUNDLES
Insert Open/Close Tag (⌃<) — this command will take the word just typed and change it into placing the caret in the middle. It will recognize those tags where a close tag is not allowed (like hr) and instead insert placing the caret after the tag.
Wrap Selection in Open/Close Tag (⌃⇧W) — this will put
…
around the selection but allows you to overtype the p (and add arguments). After you are done, press tab to move the caret past the tag.Wrap Selection as Link (⌃⇧L) — this turns the selection into link text for an anchor where you can then fill in the URL.
TEXT BUNDLE
Delete Line (⌃⇧K) — delete the current line.
Document Statistics (⌃⇧N) — this provides a tool tip which show how many lines, words and characters the current document contains.
Duplicate Line / Selection (⌃⇧D) — this will duplicate the current line, leaving the caret in the same column on the new line, or if there is a selection, duplicate that.
Sort Lines in Document / Selection (F5) — this will sort the lines or selection alphabetically.
Control + Escape - Open the Bundle Menu
⌃⌘T (Bundles → Select Bundle Item… - Shows any Command/Snippet/Macro available in the current scope
Command Shift t - Go to symbol (i.e. go to a method or something.)
Caret movement
⌃F, ⌃B Character forward/back
⌃A, ⌃E Line beginning/end
⌃P, ⌃N Line up/down
??, ⌃V Page up2/down
⌘J (Edit → Find → Jump to Selection) Center selection on screen
⌃L Center line with caret on screen
⇧⌘J (Navigation → Go to Middle Visible Line) Go to Middle Visible Line, moves caret
You can also move the window w/o moving the caret. This can be achieved with ⌃⌥⌘←→↑↓ and is a handy way to just move the visible editing area.
Selections
⌃W (Edit → Select → Word) Select current Word
⇧⌘L (Edit → Select → Line) Select current Line
⇧⌘B (Edit → Select → Enclosing Brackets) Select enclosing Smart Typing Pair (see Preference Items). This can be Braces, Brackets, Curly Braces, “<”, “>”, Quotation Marks, etc.
⌃⌘←→ (Text → Move Selection → Column Left/Right) Moves the current Selection character-wise
⌃⌘↑↓ (Text → Move Selection → Line Up/Down) Moves the current Selection line-wise.
⌥⌘A (Text → Edit Each Line in Selection) lets you insert text at the end of each line in the current selection.
⌥F2 will bring up the Context Menu (like right-clicking) so you can easily correct the spelling of the current word or use conversion commands on a selection.
⇧↩ Create a function/method body with previous word as name
⌘↩ Move to end of line and insert a newline
⌘⌥↩ Move to end of line and insert potential end-of-line symbol (; in many sources, . in prose)
⇧⌘↩ As above, but also insert a newline
⌥⌘↩ Insert a new line above the current line
⌅ Insert a newline and start a new “item” (e.g. line comment, bullet point, etc.)
Build (⌘B) — build the current source/project. Normally that means compile it.
Run (⌘R) — run the current source (script) or product from building a project.
Documentation for Word (⌃H) — lookup the current word (or “unit”) in the documentation (often online).
Validate Syntax (⌃⇧V) — run the syntax through whatever form of syntax checker exist for the current document type. Generally show errors as a tool tip, but for more complex validation, HTML output is sometimes used.
Wrap in «Something» (⌃⇧W) — wrap the selection in what makes sense for the current document type, e.g. open/close tags in HTML, begin/end environment in LaTeX.
Convert to «Something» (⌃⇧H) — convert the document into something which makes sense, e.g. for HTML run it through tidy, for Markdown convert it to HTML, for an XML property list convert it to the more readable ASCII version, etc. Generally this is done in-place, overwriting the current document.
Continue «Something» (⌅) — continue the current construct on the next line e.g. a line comment, list item or similar.
Preview Document (⌃⌥⌘P) — by default this opens the Web Preview, but it has been overloaded for some markup languages for a preview more suited for that language (i.e. doing the HTML conversion and setting up a basic style sheet before showing it).
Insert Close Element (⌥⌘.) — by default this inserts the appropriate closing tag (HTML) but is overloaded in some contexts to insert whatever constitutes a close element (e.g. \end{environment} in LaTeX).
Comment Toggle (⌘/) — toggle comment characters around the current line or selection.