Keyboard shortcuts
Pilcrow editor
A made-up text editor, so the keys here are for show. Mac caps first, Windows and Linux below.
01Move around
←
One character left
⌥←Alt←
One word left
⌘←Home
Start of the line
⌘→End
End of the line
⌘↑CtrlHome
Top of the file
⌘↓CtrlEnd
Bottom of the file
⌘GCtrlG
Go to line number
⌃⇥CtrlTab
Next open tab
02Edit lines
⌥↑Alt↑
Move the line up
⌥↓Alt↓
Move the line down
⌥⇧↓AltShift↓
Copy the line below
⌘⇧KCtrlShiftK
Delete the line
⌘↩CtrlEnter
Open a new line below
⌘/Ctrl/
Comment or uncomment
⌘]Ctrl]
Indent the lines
TipSelect nothing, and these keys act on the line the cursor is in.
03Select
⇧←Shift←
Grow the selection by a character
⌥⇧←AltShift←
Grow the selection by a word
⌘LCtrlL
Select the whole line
⌘DCtrlD
Select the next match of the word
⌘ACtrlA
Select all
⌃⇧→CtrlShift→
Expand to the enclosing block
04Find and replace
⌘FCtrlF
Find in this file
⌘⇧FCtrlShiftF
Find in every file
⌘⌥FCtrlH
Replace in this file
↩Enter
Jump to the next match
⇧↩ShiftEnter
Jump to the previous match
⌥↩AltEnter
Select every match at once
.*Toggle the pattern mode in the find box
05Files and panels
⌘PCtrlP
Open a file by name
⌘⇧PCtrlShiftP
Open the command list
⌘BCtrlB
Show or hide the sidebar
⌘⇧TCtrlShiftT
Reopen the closed tab
⌃`Ctrl`
Show or hide the terminal
06Many cursors
Edit several places in one go.
⌘ClickAltClick
Add a cursor where you click
⌘⌥↓CtrlAlt↓
Add a cursor on the line below
⌘⌥↑CtrlAlt↑
Add a cursor on the line above
⎋Esc
Back to one cursor
WarningA paste with many cursors puts one line at each cursor. Count your lines first.
07Chords
Press the first pair, let go, then the second.
⌘K⌘CCtrlKCtrlC
Comment the selection
⌘K⌘UCtrlKCtrlU
Remove the comment
⌘K⌘0CtrlKCtrl0
Fold every block
⌘K⌘JCtrlKCtrlJ
Unfold every block
⌘KZCtrlKZ
Zen mode: hide all panels
08Snippets you will type
log<Tab>Expands to a log line with the cursor inside.
for<Tab>
fn<Tab>A loop, then a function stub.
| Prefix | You get |
|---|---|
cls | A class stub |
imp | An import line |
todo | A dated TODO note |