Docs Lab guide Keyboard shortcuts
Reference · Chapter 11 of 14
Keyboard shortcuts
Every binding, by surface.
~2 min read 8 sections same text as the guide inside the lab
All chapters
Every binding that actually exists, grouped by where it applies. Inside the lab, press ⌘/ anywhere outside the text editor for the same list as an overlay, or click shortcuts in the status bar.
# Everywhere
macOS Windows / Linux What it does
⌘⇧P or ⌘P Ctrl+Shift+P or Ctrl+P Command palette — commands, files, library items, guide chapters
⌘K Ctrl+K Search the library by subject (or focus the gallery's search)
⌘⇧F Ctrl+Shift+F Find and replace across the project
⌘⇧M Ctrl+Shift+M Problems — the syntax check for this project
⌘O Ctrl+O Switch project
⌘J Ctrl+J Show / hide the bottom panel
⌘S Ctrl+S Save all now (autosave runs 1.2 s after you stop typing)
⌘/ Ctrl+/ This cheatsheet (outside the text editor — inside, it toggles a comment)
Esc Esc Close the palette, a dialog, the gallery or the tour
# Tabs
macOS Windows / Linux What it does
Middle-click Middle-click Close a tab
Drag Drag Reorder tabs
Right-click Right-click Close · Close others · Close to the right · Close saved
Wheel Wheel Scroll the tab strip
# Editor
CodeMirror's standard bindings; completions are on for .py files.
macOS Windows / Linux What it does
⌘Z Ctrl+Z Undo
⌘⇧Z Ctrl+Shift+Z Redo (Ctrl+Y on Windows/Linux)
⇥ or ⌘] Tab or Ctrl+] Indent (or accept an open completion)
⇧⇥ or ⌘[ Shift+Tab or Ctrl+[ Outdent
⌘/ Ctrl+/ Toggle line comment
⌥↑ or ⌥↓ Alt+↑ or Alt+↓ Move line up / down
⇧⌥↑ or ⇧⌥↓ Shift+Alt+↑ or Shift+Alt+↓ Copy line up / down
⇧⌘K Shift+Ctrl+K Delete line
⌘A Ctrl+A Select all
⌃ Space Ctrl+Space Open completions (SDK names, words in the file)
↵ Enter Accept the highlighted completion (Esc dismisses)
⌘. Ctrl+. Copilot actions on the selection (no selection: the current line)
# Notebook
macOS Windows / Linux What it does
⇧↵ Shift+Enter Run the cell, move to the next (adds one at the end)
⌘↵ Ctrl+Enter Run the cell and stay
⇧↵ Shift+Enter In a markdown cell: render it
Double-click Double-click Edit a rendered markdown cell
# Circuit builder
macOS Windows / Linux What it does
⌘Z Ctrl+Z Undo
⇧⌘Z Shift+Ctrl+Z Redo
⌦ or ⌫ Del or Backspace Remove the selected gate
← or → ← or → Walk between gates
Esc Esc Cancel a drag, close the menu, put a gate down, deselect
Right-click Right-click Gate and column actions
⌥ Drag Alt+Drag Duplicate a gate
# Explorer
macOS Windows / Linux What it does
↑ or ↓ ↑ or ↓ Walk the tree
→ → Expand a folder, or step into it
← ← Collapse a folder, or step out to its parent
↵ Enter Open a file / toggle a folder
Home or End Home or End First / last row
# Library gallery
macOS Windows / Linux What it does
/ / Focus the search box
↓ ↓ From the box into the grid; arrows walk cards
↵ Enter Open the card (in the box: the best match)
Esc Esc Close the gallery
# Copilot
macOS Windows / Linux What it does
↵ Enter Send
⇧↵ Shift+Enter New line
Related: Getting started · Circuit builder & emulator