Reference · Chapter 11 of 14

Keyboard shortcuts

Every binding, by surface.

~2 min read8 sectionssame 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

macOSWindows / LinuxWhat it does
⌘⇧P or ⌘PCtrl+Shift+P or Ctrl+PCommand palette — commands, files, library items, guide chapters
⌘KCtrl+KSearch the library by subject (in the gallery: its search box; on an editor selection: Copilot edit)
⌘ICtrl+IOpen Copilot and focus its input
⌘BCtrl+BShow / hide the side panel
⌘⇧FCtrl+Shift+FFind and replace across the project
⌘⇧MCtrl+Shift+MProblems — the syntax check for this project
⌘OCtrl+OSwitch project
⌘JCtrl+JShow / hide the bottom panel
⌘⇧RCtrl+Shift+RShow / hide the Run rail — machine, shots, the server's quote, Submit
⌘SCtrl+SSave all now (autosave runs 1.2 s after you stop typing)
⌘/Ctrl+/This cheatsheet (outside the text editor — inside, it toggles a comment)
EscEscClose the palette, a dialog, the gallery or the tour

Tabs

macOSWindows / LinuxWhat it does
⌃⌥→Ctrl+Alt+→Next tab (wraps around)
⌃⌥←Ctrl+Alt+←Previous tab
Middle-clickMiddle-clickClose a tab
DragDragReorder tabs
Right-clickRight-clickClose · Close others · Close to the right · Close saved
WheelWheelScroll the tab strip

Editor

CodeMirror's standard bindings plus the lab's find, multi-cursor and Copilot chords; completions are on for .py files.

macOSWindows / LinuxWhat it does
⌘ZCtrl+ZUndo
⌘⇧ZCtrl+Shift+ZRedo (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
⌘FCtrl+FFind and replace in this file (regex, match case, whole word)
⌘G or F3Ctrl+G or F3Next match (in the find box: Enter next, Shift+Enter previous)
⇧⌘GShift+Ctrl+GPrevious match
⌘DCtrl+DSelect the word, then each next occurrence (multi-cursor)
⌥ ClickAlt+ClickAdd a caret
⌘⌥↑ or ⌘⌥↓Ctrl+Alt+↑ or Ctrl+Alt+↓Add a caret on the line above / below
⌘KCtrl+KCopilot 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
⇧⌘KShift+Ctrl+KDelete line
⌘ACtrl+ASelect all
⌃ SpaceCtrl+SpaceOpen completions (SDK names, words in the file)
↵EnterAccept the highlighted completion (Esc dismisses)
EscEscClose find, dismiss completions, collapse to a single caret
⌘.Ctrl+.Copilot actions on the selection (no selection: the current line)

Notebook

macOSWindows / LinuxWhat it does
⇧↵Shift+EnterRun the cell, move to the next (adds one at the end)
⌘↵Ctrl+EnterRun the cell and stay
⇧↵Shift+EnterIn a markdown cell: render it
Double-clickDouble-clickEdit a rendered markdown cell

Circuit builder

These answer the circuit while it has focus — select a gate or click the canvas first.

macOSWindows / LinuxWhat it does
⌘ZCtrl+ZUndo
⇧⌘ZShift+Ctrl+ZRedo
⌦ or ⌫Del or BackspaceRemove the selected gate
← or →← or →Walk between gates in reading order
↑ or ↓↑ or ↓Walk between gates sharing a column
EscEscCancel a drag, close the menu, put a gate down, deselect
Right-clickRight-clickGate and column actions
⌥ DragAlt+DragDuplicate a gate

Explorer

macOSWindows / LinuxWhat it does
↑ or ↓↑ or ↓Walk the tree
→→Expand a folder, or step into it
←←Collapse a folder, or step out to its parent
↵EnterOpen a file / toggle a folder
Home or EndHome or EndFirst / last row
macOSWindows / LinuxWhat it does
//Focus the search box
↓↓From the box into the grid; arrows walk cards
↵EnterOpen the card (in the box: the best match)
EscEscClose the gallery

Copilot

macOSWindows / LinuxWhat it does
↵EnterSend
⇧↵Shift+EnterNew line

Related: Getting started · Circuit builder & emulator