Skip to main content
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

ShortcutAction
Cmd+POpen Command Palette
Cmd+Shift+POpen Command Search
Cmd+,Open Settings
Cmd+NNew File
Cmd+OOpen File
Cmd+WClose Tab
Cmd+QQuit Substrate

Editor

ShortcutAction
Cmd+SSave
Cmd+ZUndo
Cmd+Shift+ZRedo
Cmd+XCut Line (when no selection)
Cmd+CCopy Line (when no selection)
Cmd+DSelect Next Occurrence
Cmd+/Toggle Line Comment
Cmd+Shift+KDelete Line
Alt+UpMove Line Up
Alt+DownMove Line Down
Alt+Shift+UpCopy Line Up
Alt+Shift+DownCopy Line Down
Cmd+EnterInsert Line Below
Cmd+Shift+EnterInsert Line Above
TabIndent
Shift+TabOutdent
ShortcutAction
Cmd+PGo to File
Cmd+GGo to Line
Cmd+Shift+OGo to Symbol in File
Cmd+FFind
Cmd+HFind and Replace
Cmd+Shift+FSearch Across Files
Cmd+ClickGo to Definition
Alt+LeftNavigate Back
Alt+RightNavigate Forward

Panels

ShortcutAction
Cmd+`Toggle Terminal
Cmd+BToggle Sidebar
Cmd+JToggle Bottom Panel
Cmd+1 through Cmd+9Switch to Tab 1—9

Simulation

ShortcutAction
F5Run Execution Profile
Shift+F5Stop Simulation
Cmd+Shift+SCapture Screenshot
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 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.