Editing text
Everything here works in every file type, whether or not crc has a grammar or a language server for it.
Multiple cursors
Section titled “Multiple cursors”Every edit, motion and selection applies at every cursor at once.
Find and replace
Section titled “Find and replace”Find supports regular expressions. Edit › Replace All replaces every match. To search the whole project, see Search and navigation.
Lines and blocks
Section titled “Lines and blocks”New lines are auto-indented, and brackets and quotes close themselves. Indent guides show the structure, and the bracket pair around the caret is highlighted.
Folding
Section titled “Folding”View › Fold All and View › Unfold All do the whole file.
Word wrap
Section titled “Word wrap”⌥Z (View › Word Wrap) wraps long lines in the
current document. By default Markdown and text files wrap and code does not;
the word_wrap setting changes that.
Motions
Section titled “Motions”| Keys | Does |
|---|---|
| Arrows, Home / End, PgUp / PgDn | Move |
| ⇧ with any of those | Extend the selection |
| ⌥ + arrows | Move by word |
| ⌥⌫ | Delete a word |
| ⌃A E K D B F P N | The macOS Emacs bindings |
| Click, drag, ⇧-click | Position and select |
| ⌘A | Select all |
| ⌘Z / ⌘⇧Z | Undo, redo |
Font size
Section titled “Font size”⌘= and ⌘- zoom the code font and write the size back to your settings; ⌘0 goes back to 13 points.
Unicode
Section titled “Unicode”Full Unicode, with emoji and CJK. Dead keys and input methods go through macOS text input.