Keybindings
Every action in e is a named command. Keys are bound to commands in a
table, and you can override or add bindings in your
config.json (⌘,).
Customizing
Add a keybindings section that maps a key string to a command id:
{
"keybindings": {
"cmd+k": "delete-line", // rebind ⌘K
"ctrl+shift+t": "run-test", // add a new binding
"cmd+/": "none" // remove a default binding
}
}
- A user binding overrides the default for that key.
- Use
"none"(or"") as the command to remove a default binding. - Restart
eafter editing.
Key string syntax
Modifiers, then the key, joined with +:
- Modifiers:
cmd(⌘),ctrl,alt(⌥),shift - Keys: a letter/symbol (
p,/,=,-,[),space,escape,enter,tab,backspace, arrows (up,down,left,right), andf1–f12
Examples: cmd+shift+p, ctrl+g, alt+up, cmd+/, f12, shift+f12.
Command ids
| Command id | Default | Action |
|---|---|---|
goto-file |
cmd+p |
Find file |
command-palette |
cmd+shift+p |
Command palette |
recent |
cmd+e |
Recent files |
open-folder |
cmd+o |
Open folder / project |
open-file |
— | Open file… |
symbols |
cmd+shift+o |
Go to symbol |
search |
cmd+shift+f |
Search in files |
find |
cmd+f |
Find in file |
replace |
cmd+alt+f |
Replace in file |
goto-line |
ctrl+g |
Go to line |
nav-back / nav-forward |
ctrl+- / ctrl+shift+- |
Navigate back / forward |
new-file |
cmd+n |
New file |
save / save-as |
cmd+s / cmd+shift+s |
Save / Save As |
format |
— | Format document |
rename |
f2 |
Rename symbol |
code-actions |
cmd+. |
Code actions / refactor |
compare-file |
— | Compare active file with… |
comment |
cmd+/ |
Toggle line comment |
move-line-up / move-line-down |
alt+up / alt+down |
Move line |
duplicate-line |
cmd+d |
Duplicate line |
delete-line |
cmd+shift+k |
Delete line |
indent / outdent |
cmd+] / cmd+[ |
Indent / outdent |
select-next-occurrence |
cmd+shift+d |
Add cursor at next match |
select-all-occurrences |
cmd+shift+l |
Add cursor at all matches |
add-cursor-above / add-cursor-below |
cmd+alt+up / cmd+alt+down |
Column editing |
completion |
cmd+space |
Trigger completion |
hover |
f1 |
Hover info |
definition / references |
f12 / shift+f12 |
Go to definition / references |
debug |
f5 |
Start / continue debugging |
debug-toggle-breakpoint |
f9 |
Toggle breakpoint on the caret line |
debug-step-over / debug-step-into / debug-step-out |
f10 / f11 / shift+f11 |
Step |
debug-panel / debug-stop |
— | Toggle Debug panel / stop session |
run-task / run-test |
cmd+shift+b / — |
Run task / tests |
source-control |
cmd+2 |
Toggle Source Control |
diff |
— | Git diff vs HEAD |
toggle-database |
cmd+3 |
Toggle Database panel |
run-sql / explain-sql |
cmd+enter / cmd+alt+enter |
Run / EXPLAIN SQL under cursor (PHP) |
suggest-index |
— | Ask the agent for an index migration |
toggle-sidebar |
cmd+1 |
Toggle sidebar |
split |
cmd+\ |
Split editor |
toggle-terminal |
cmd+t / `ctrl+`` |
Toggle terminal |
new-terminal / split-terminal |
— | New / split terminal |
toggle-agent / restart-agent |
cmd+l / — |
Agent panel / restart |
agent-send-selection |
cmd+alt+s |
Send editor selection to the agent |
session-review |
cmd+alt+v |
Review what the agent changed this session |
markdown |
cmd+shift+m |
Markdown preview |
theme |
f8 |
Light / dark theme |
zoom-in / zoom-out / zoom-reset |
cmd+= / cmd+- / cmd+0 |
Zoom |
word-wrap |
alt+z |
Toggle word wrap |
settings |
cmd+, |
Open settings |
about / check-updates / install-cli |
— | App commands |
close |
cmd+w |
Close tab / terminal / agent |
close-tab |
— | Close the active tab |
close-overlays |
escape |
Dismiss open overlays |