Every command¶
Every action the editor can be asked to perform, under a name. These are
the names the right-hand side of a key. setting takes — see
Keybindings.
Each can also be typed on the : line — :editor.find — alongside the
ex-commands listed in The command line. Both
paths resolve a name the same way. See docs/adr/0128.
Editor¶
Act on the buffer you are in.
| Command | Does | Default keys |
|---|---|---|
editor.about |
About this editor | Alt+I |
editor.command-line |
Open the command line | Alt+; |
editor.compile |
Run the build command | Alt+B |
editor.copy |
Copy | Ctrl+C |
editor.cursor.add-next-occurrence |
Add a cursor at the next match | Ctrl+D |
editor.cut |
Cut | Ctrl+X |
editor.document-symbols |
Outline of this file | Alt+S |
editor.find |
Find in this buffer | Ctrl+F |
editor.find-in-project |
Find across the project | Alt+F |
editor.find-references |
Every use of the symbol under the cursor | Shift+F12 |
editor.font.larger |
Larger text | Ctrl+=, Ctrl++ |
editor.font.reset |
Text back to the configured size | Ctrl+0 |
editor.font.smaller |
Smaller text | Ctrl+- |
editor.go-to-definition |
Go to definition | F12 |
editor.help |
Show every keyboard shortcut | F1 |
editor.jump-back |
Back to the previous jump | Ctrl+O, Alt+Left |
editor.jump-forward |
Forward again | Ctrl+I, Alt+Right |
editor.open |
Open a file | Alt+O |
editor.open-in-project |
Open any file in the project by name | Ctrl+P |
editor.output-panel |
Toggle the build output | Alt+P |
editor.output-panel.shorter |
Give the editor more room | Ctrl+W then - |
editor.output-panel.taller |
Give the output panel more room | Ctrl+W then +, Ctrl+W then = |
editor.paste |
Paste the system clipboard | Ctrl+V |
editor.quit |
Quit | Ctrl+Q |
editor.redo |
Redo | Ctrl+Shift+Z, Ctrl+R (normal), Ctrl+R (insert), Ctrl+R (visual) |
editor.rename-symbol |
Rename the symbol everywhere | F2 |
editor.replace |
Find and replace | Ctrl+H |
editor.replace-in-project |
Replace across the project | Alt+R |
editor.save |
Save the file | Ctrl+S |
editor.save-as |
Save under a different name | Ctrl+Shift+S |
editor.select-all |
Select the whole buffer | Ctrl+A |
editor.undo |
Undo | Ctrl+Z |
Vim¶
Bound in Normal and Visual mode only.
| Command | Does | Default keys |
|---|---|---|
vim.half-page-down |
Half a screen down | Ctrl+D (normal), Ctrl+D (visual) |
vim.half-page-up |
Half a screen up | Ctrl+U (normal), Ctrl+U (visual) |
vim.number.decrement |
Subtract one from the next number | Ctrl+X (normal) |
vim.number.increment |
Add one to the next number | Ctrl+A (normal) |
Buffers¶
Act on the list of open files.
| Command | Does | Default keys |
|---|---|---|
buffer.close |
Close this buffer | — |
buffer.new |
New buffer | Ctrl+N, Ctrl+W then N |
buffer.next |
Next buffer | Ctrl+Tab |
buffer.previous |
Previous buffer | Ctrl+Shift+Tab |
Panes¶
Act on the regions of the window.
| Command | Does | Default keys |
|---|---|---|
pane.close |
Close the focused region | Ctrl+W then C, Ctrl+W then Q |
pane.cycle |
Cycle between regions | Ctrl+W then W |
pane.focus-down |
Focus the region below | Ctrl+W then J |
pane.focus-up |
Focus the region above | Ctrl+W then K |
pane.only |
Close everything but the editor | Ctrl+W then O |