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
| Windows / Linux | Mac | What it does |
|---|---|---|
| Shift + Enter | Shift + Enter | Run cell and move to next |
| Ctrl + Enter | Cmd + Enter | Run cell and stay |
| Alt + Enter | Option + Enter | Run cell and insert new cell below |
| Ctrl + F9 | Cmd + F9 | Run all cells |
| Ctrl + F10 | Cmd + F10 | Run current cell and all below |
| Ctrl + F8 | Cmd + F8 | Run all cells above current |
| Ctrl + M I | Cmd + M I | Interrupt execution (stop running cell) |
2. Cell editing
| Windows / Linux | Mac | What it does |
|---|---|---|
| Ctrl + M A | Cmd + M A | Insert cell above |
| Ctrl + M B | Cmd + M B | Insert cell below |
| Ctrl + M D | Cmd + M D | Delete current cell |
| Ctrl + M M | Cmd + M M | Convert to Markdown cell |
| Ctrl + M Y | Cmd + M Y | Convert to Code cell |
| Ctrl + M Z | Cmd + M Z | Undo cell deletion |
| Ctrl + M Shift + Up | Cmd + M Shift + Up | Move cell up |
| Ctrl + M Shift + Down | Cmd + M Shift + Down | Move cell down |
3. Navigation
| Windows / Linux | Mac | What it does |
|---|---|---|
| Ctrl + M K | Cmd + M K | Move to previous cell |
| Ctrl + M J | Cmd + M J | Move to next cell |
| Ctrl + M Home | Cmd + M Home | Go to first cell |
| Ctrl + M End | Cmd + M End | Go to last cell |
| Escape | Escape | Exit cell edit mode (enter command mode) |
| Enter | Enter | Enter edit mode for selected cell |
4. Runtime management
| Windows / Linux | Mac | What it does |
|---|---|---|
| Ctrl + M I | Cmd + M I | Interrupt (stop current execution) |
| Ctrl + M . | Cmd + M . | Restart runtime |
| Ctrl + M Shift + F | Cmd + M Shift + F | Restart and run all cells |
| Ctrl + S | Cmd + S | Save notebook to Drive |
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