This page lists the default keyboard shortcuts in Substrate. On macOS, Cmd is used as the primary modifier. On Windows and Linux, substitute Ctrl for Cmd.
General
| Shortcut | Action |
|---|
Cmd+P | Open Command Palette |
Cmd+Shift+P | Open Command Search |
Cmd+, | Open Settings |
Cmd+N | New File |
Cmd+O | Open File |
Cmd+W | Close Tab |
Cmd+Q | Quit Substrate |
Editor
| Shortcut | Action |
|---|
Cmd+S | Save |
Cmd+Z | Undo |
Cmd+Shift+Z | Redo |
Cmd+X | Cut Line (when no selection) |
Cmd+C | Copy Line (when no selection) |
Cmd+D | Select Next Occurrence |
Cmd+/ | Toggle Line Comment |
Cmd+Shift+K | Delete Line |
Alt+Up | Move Line Up |
Alt+Down | Move Line Down |
Alt+Shift+Up | Copy Line Up |
Alt+Shift+Down | Copy Line Down |
Cmd+Enter | Insert Line Below |
Cmd+Shift+Enter | Insert Line Above |
Tab | Indent |
Shift+Tab | Outdent |
Navigation
| Shortcut | Action |
|---|
Cmd+P | Go to File |
Cmd+G | Go to Line |
Cmd+Shift+O | Go to Symbol in File |
Cmd+F | Find |
Cmd+H | Find and Replace |
Cmd+Shift+F | Search Across Files |
Cmd+Click | Go to Definition |
Alt+Left | Navigate Back |
Alt+Right | Navigate Forward |
Panels
| Shortcut | Action |
|---|
Cmd+` | Toggle Terminal |
Cmd+B | Toggle Sidebar |
Cmd+J | Toggle Bottom Panel |
Cmd+1 through Cmd+9 | Switch to Tab 1—9 |
Simulation
| Shortcut | Action |
|---|
F5 | Run Execution Profile |
Shift+F5 | Stop Simulation |
Cmd+Shift+S | Capture Screenshot |
Customizing Shortcuts
Keymap Presets
Open Settings > Keyboard Shortcuts to view and modify all key bindings. Substrate uses a JSON-based keybinding configuration. Changes take effect immediately without restarting.
Substrate ships with a default keymap. Community keymaps for VS Code and JetBrains-style bindings are available as plugins.
Substrate supports Vim keybindings. Enable modal editing in Settings > Editor > Modal. When Vim mode is active, the editor starts in Normal mode and standard Vim motions, operators, and ex commands are available.