Google Colab

Google Colab Keyboard Shortcuts

Complete Google Colab keyboard shortcuts. Code execution, cell editing, and runtime management shortcuts.

15
Shortcuts
3
Categories
Free
100% Free

Google Colab is Jupyter in the browser with one twist: because the browser owns Ctrl + letter shortcuts, Colab moves every cell-management command onto a two-key sequence that starts with Ctrl + M. The run keys match Jupyter exactly, and the editing keys are Monaco's, so anyone from VS Code or Jupyter is halfway there.

Cell Execution 4

Ctrl+Enter
Run Cell
Execute current cell
Shift+Enter
Run & Select Next
Execute cell and move to next
Alt+Enter
Run & Insert Below
Execute cell and create new cell below
Ctrl+Shift+Enter
Run All
Execute all cells

Cell Management 6

Ctrl+M+B
Add Code Cell Below
Insert code cell below current
Ctrl+M+A
Add Code Cell Above
Insert code cell above current
Ctrl+M+D
Delete Cell
Delete current cell
Ctrl+M+Y
Convert to Code
Convert cell to code cell
Ctrl+M+M
Convert to Text
Convert cell to text cell
Ctrl+M+Up/Down
Move Cell
Move cell up or down

Editing 5

Ctrl+/
Toggle Comment
Comment or uncomment lines
Tab
Indent
Indent code
Shift+Tab
Dedent
Dedent code
Ctrl+]
Indent Selection
Indent selected lines
Ctrl+[
Dedent Selection
Dedent selected lines
📜 Source: Google Colab — Tools › Keyboard shortcuts (in-app list). Bindings from Colab's in-app shortcut list; Colab publishes no separate reference page. Checked 2026-09-05. How we verify ›
📄 View Printable Cheat Sheet — Download as PDF or print

→ Related guide: Keyboard shortcuts every data scientist should know

Running cells

Running the current cell in place is Ctrl + Enter; Shift + Enter runs it and moves the selection down one, and Alt + Enter runs it then opens a fresh cell underneath — the three that carry a notebook session. Ctrl + Shift + Enter runs every cell in order, which is what to use after a runtime restart. Colab shows a spinning indicator on the running cell; Ctrl + M followed by I interrupts it, and a second interrupt usually clears a hung network call.

The Ctrl + M prefix

Press Ctrl + M, release, then a letter: Ctrl + M + B inserts a code cell below and Ctrl + M + A above, Ctrl + M + D deletes the current cell, and Ctrl + M + Y and Ctrl + M + M convert between code and text (Markdown). Ctrl + M + Up/Down moves the cell. The prefix exists because Ctrl + B, Ctrl + D and the rest are browser bindings; Colab remaps them inside Tools › Keyboard shortcuts if you want single keys.

Editing inside a cell

The cell editor is Monaco, the same component as VS Code, so Ctrl + / toggles comments, Tab and Shift + Tab indent and dedent (with Tab also triggering completion on a partial name), and a selected block shifts right or left with Ctrl + ] or Ctrl + [. Hovering a function with the cursor shows its signature; the Ctrl + Space completion list includes objects from the running kernel, which is why it only works after the cell that defines them has run.

No shortcuts found

Frequently Asked Questions

Can I combine Google Colab shortcuts with other tools?

Yes — use My Stack to combine Google Colab shortcuts with any other platform on this site into one printable reference, which is useful if your daily workflow spans several tools.

Copied!
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

🤖 Ask AI about Google Colab shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok