Shape
Docs

Keyboard Shortcuts

Complete reference for Shape keybindings and command palette shortcuts.

Shape shortcuts come from shape/config/keybindings.json plus workbench and editor commands registered in the command palette. Most use Ctrl on Windows.

Open the command palette (Ctrl+Shift+P) to find actions by name. Assigned shortcuts appear on the right.

File and workspace

ActionShortcut
New Text FileCtrl+N
New WindowCtrl+Shift+N
Open FileCtrl+O
Open FolderCtrl+K Ctrl+O
Close FolderCtrl+K Ctrl+W
SaveCtrl+S
Save AsCtrl+Shift+S
Save AllCtrl+K S
Close TabCtrl+W
Close All TabsCtrl+K E
Recent FilesCtrl+E
Close WindowAlt+F4
ActionShortcut
Go to FileCtrl+P
Command PaletteCtrl+Shift+P
Go to Line/ColumnCtrl+G
Go to Symbol in WorkspaceCtrl+T
Find in FilesCtrl+Shift+F
Replace in FilesCtrl+H
ExplorerCtrl+Shift+E
Search sidebarCtrl+Shift+F
Source ControlCtrl+Shift+G

Edit

ActionShortcut
UndoCtrl+Z
RedoCtrl+Y
CutCtrl+X
CopyCtrl+C
PasteCtrl+V
Select AllCtrl+A
Toggle Line CommentCtrl+/
Toggle Block CommentShift+Alt+A
Indent LineCtrl+]
Outdent LineCtrl+[
Move Line Up / DownAlt+↑ / Alt+↓
Duplicate Line DownShift+Alt+↓
Add Cursor Above / BelowCtrl+Alt+↑ / Ctrl+Alt+↓
Join LinesCommand palette
Transform to Uppercase / LowercaseCommand palette

Format and refactor

ActionShortcut
Format DocumentAlt+Shift+F
Format SelectionCtrl+K Ctrl+F
Quick FixCtrl+.
Rename SymbolF2
Organize ImportsShift+Alt+O

Go to symbol

ActionShortcut
Go to DefinitionF12
Peek DefinitionAlt+F12
Find All ReferencesShift+F12
Go to Next ProblemF8
Go to Previous ProblemShift+F8

View and panels

ActionShortcut
Toggle Terminal PanelCtrl+`
New TerminalCtrl+Shift+`
ProblemsCtrl+Shift+M
Toggle Word WrapAlt+Z
Open SettingsCtrl+,
Toggle AI ChatCtrl+L
Zen ModeCtrl+K Z
Fold AllCtrl+K Ctrl+0
Unfold AllCtrl+K Ctrl+J

Browser and visual design

These apply while the Browser tab is focused.

ActionShortcut
Toggle design modeCtrl+Shift+D
Toggle inspect vs page interactionCtrl+I
Undo / redo design previewCtrl+Z / Ctrl+Y
Clear selectionEscape
Back / ForwardAlt+← / Alt+→

Git hunks

In a Working Tree or Index diff tab:

ActionShortcut
Stage hunk (unstaged)Ctrl+Y
Unstage hunk (staged)Ctrl+Shift+Y

Bookmarks

ActionShortcut
Toggle BookmarkCtrl+Alt+B
Next BookmarkCtrl+F2
Previous BookmarkShift+F2

Palette-only commands

These commands have no default shortcut. Run them from Ctrl+Shift+P:

  • View: Show Problems
  • View: Show Output
  • Editor: Toggle Minimap
  • Editor: Toggle Inlay Hints
  • Chat: Show History
  • Change Language Mode…
  • View: Toggle Zen Mode (also Ctrl+K Z)

Chords

Some shortcuts use two steps. Press the first chord, release, then press the second:

ActionChord
Zen ModeCtrl+K, then Z
Save AllCtrl+K, then S
Close All TabsCtrl+K, then E
Format SelectionCtrl+K, then Ctrl+F
Fold AllCtrl+K, then Ctrl+0
Unfold AllCtrl+K, then Ctrl+J
Edit