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 (in the gallery: its search box; on an editor selection: Copilot edit)
⌘I Ctrl+I Open Copilot and focus its input
⌘B Ctrl+B Show / hide the side panel
⌘⇧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
⌘⇧R Ctrl+Shift+R Show / hide the Run rail — machine, shots, the server's quote, Submit
⌘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
⌃⌥→ Ctrl+Alt+→ Next tab (wraps around)
⌃⌥← Ctrl+Alt+← Previous tab
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 plus the lab's find, multi-cursor and Copilot chords; 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
⌘F Ctrl+F Find and replace in this file (regex, match case, whole word)
⌘G or F3 Ctrl+G or F3 Next match (in the find box: Enter next, Shift+Enter previous)
⇧⌘G Shift+Ctrl+G Previous match
⌘D Ctrl+D Select the word, then each next occurrence (multi-cursor)
⌥ Click Alt+Click Add a caret
⌘⌥↑ or ⌘⌥↓ Ctrl+Alt+↑ or Ctrl+Alt+↓ Add a caret on the line above / below
⌘K Ctrl+K Copilot edits the selection by instruction (no selection: library search)
⌘⌥[ Ctrl+Shift+[ Fold the block at the cursor
⌘⌥] Ctrl+Shift+] Unfold it
⌃⌥[ or ⌃⌥] Ctrl+Alt+[ or Ctrl+Alt+] Fold all / unfold all
⌥↑ 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)
Esc Esc Close find, dismiss completions, collapse to a single caret
⌘. 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
These answer the circuit while it has focus — select a gate or click the canvas first.
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 in reading order
↑ or ↓ ↑ or ↓ Walk between gates sharing a column
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