All Articles

Google Colab Keyboard Shortcuts: Faster Data Science Workflow (2026)

Published: May 1, 2026 · 8 min read

Google Colab is the go-to environment for data science, machine learning experiments, and collaborative Python notebooks. Whether you use it for quick experiments or full ML training runs, these shortcuts will significantly speed up your workflow.

Table of Contents

  1. Running cells
  2. Cell editing
  3. Navigation
  4. Runtime management
  5. Command mode vs edit mode
  6. Workflow tips

1. Running cells

Windows / LinuxMacWhat it does
Shift + EnterShift + EnterRun cell and move to next
Ctrl + EnterCmd + EnterRun cell and stay
Alt + EnterOption + EnterRun cell and insert new cell below
Ctrl + F9Cmd + F9Run all cells
Ctrl + F10Cmd + F10Run current cell and all below
Ctrl + F8Cmd + F8Run all cells above current
Ctrl + M ICmd + M IInterrupt execution (stop running cell)
Shift+Enter is your primary shortcut. Work through a notebook top to bottom with Shift+Enter — it runs the cell and drops you into the next one automatically. Much faster than clicking Run for every cell.

2. Cell editing

Windows / LinuxMacWhat it does
Ctrl + M ACmd + M AInsert cell above
Ctrl + M BCmd + M BInsert cell below
Ctrl + M DCmd + M DDelete current cell
Ctrl + M MCmd + M MConvert to Markdown cell
Ctrl + M YCmd + M YConvert to Code cell
Ctrl + M ZCmd + M ZUndo cell deletion
Ctrl + M Shift + UpCmd + M Shift + UpMove cell up
Ctrl + M Shift + DownCmd + M Shift + DownMove cell down
Windows / LinuxMacWhat it does
Ctrl + M KCmd + M KMove to previous cell
Ctrl + M JCmd + M JMove to next cell
Ctrl + M HomeCmd + M HomeGo to first cell
Ctrl + M EndCmd + M EndGo to last cell
EscapeEscapeExit cell edit mode (enter command mode)
EnterEnterEnter edit mode for selected cell

4. Runtime management

Windows / LinuxMacWhat it does
Ctrl + M ICmd + M IInterrupt (stop current execution)
Ctrl + M .Cmd + M .Restart runtime
Ctrl + M Shift + FCmd + M Shift + FRestart and run all cells
Ctrl + SCmd + SSave notebook to Drive
Restart and run all (Ctrl+M Shift+F) is the cleanest way to verify your notebook runs end-to-end without hidden state. Run this before sharing any notebook.

5. Command mode vs edit mode

Like Jupyter, Colab has two modes. In command mode (blue cell border) keyboard shortcuts control the notebook structure. In edit mode (green cell border, cursor blinking) you type code. Press Escape to enter command mode, Enter to enter edit mode.

6. Practical workflow tips

The top-to-bottom execution habit

Always use Shift+Enter (not Ctrl+Enter) when working through a notebook sequentially. It keeps you moving forward and avoids the common mistake of forgetting which cell you last ran.

Quick cell type switching

Press Escape to enter command mode, then M to convert the cell to Markdown, or Y to convert back to code. Much faster than using the cell type dropdown.

Verify with restart

Before sharing a notebook, press Ctrl+M Shift+F (restart and run all). This catches any hidden state dependencies that might cause the notebook to fail when someone else runs it.

Interactive shortcut reference

View All Colab Shortcuts