Skip to content

Editing text

Everything here works in every file type, whether or not crc has a grammar or a language server for it.

Select the word, then the next match⌘D
Add a cursor anywhere⌥-click
Back to one cursorEsc

Every edit, motion and selection applies at every cursor at once.

Find in the file⌘F
Next match⌘G
Previous match⌘⇧G
Switch to the replace fieldTab
Cycle, or replace↩
Go to line⌘L

Find supports regular expressions. Edit › Replace All replaces every match. To search the whole project, see Search and navigation.

Toggle comment⌘/
Duplicate line⌘⇧D
Move line up⌘⇧↑
Move line down⌘⇧↓
Indent selectionTab
Outdent selection⇧Tab

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.

Fold the block at the caret⌘⌥←
Unfold it⌘⌥→

View › Fold All and View › Unfold All do the whole file.

⌥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.

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

⌘= and ⌘- zoom the code font and write the size back to your settings; ⌘0 goes back to 13 points.

Full Unicode, with emoji and CJK. Dead keys and input methods go through macOS text input.