Skip to content

Editor shortcuts

The editor claims the shortcut that is actually free in Canoryn rather than the one another editor uses, and says why. Where a shortcut differs from VS Code or Xcode, the reason is in the last column.

ActionShortcutNote
Find in file⌘FWorks in read-only files too
Find next⌘G
Find previous⇧⌘G
Go to line⌘L
Go to symbol⇧⌘OAs VS Code
Find in project⌥⌘F⇧⌘F is Focus Mode
Jump to matching bracket⌃M
Select enclosing block⇧⌃M
Go to definition⌘-clickNeeds a language server

Folding

ActionShortcutNote
Fold block at caret⌥⌘←As Xcode
Fold / unfoldgutter chevron
Unfoldclick the folded badge

Selection and carets

ActionShortcutNote
Add caret⌘-click
Select next occurrence⌘DAs VS Code
Select all occurrences⇧⌘LAs VS Code
Edit all in scope⌃⌘EAs Xcode; local, text-based
Rename symbol across project⌃⌘RNeeds a server; shows a plan first

Editing

ActionShortcutNote
Toggle line comment⌘/
Duplicate line / selection⇧⌥↓⇧⌘D is Show Debug
Delete line⇧⌘KAs VS Code
Join lines⌃JAs VS Code
Format document⇧⌥FAs VS Code
Expand snippetTabAfter its prefix
Next snippet fieldTab
Save⌘S

Project

ActionShortcutNote
Run project check⇧⌘BAs VS Code's build task; ⌘B is the left panel

Review

ActionInputNote
Reveal 20 lines from the top of a runclick
Reveal 20 lines from the bottomclick
Reveal 20 each wayclick the count
Open / close from the topdrag the band's top edge⇣ opens, up closes
Open / close from the bottomdrag the band's bottom edge⇡ opens, down closes
Fold a fully opened runclick Collapse …
Comment on a lineclick + in the gutter
Comment on a selectionselect, then Add comment
Collapse / expand a fileclick its header

See the code editor, language servers and reviewing a diff guides for what each of these does.