Chrome DevTools Keyboard Shortcuts Cheat Sheet
DevTools has hundreds of shortcuts, and you need about twenty. This cheat sheet keeps the ones that save time every day, grouped by what you are doing, with the keys for Windows and Linux and for Mac side by side.
Most of these only work while DevTools has focus: click inside it first. They work the same in Edge and every other Chromium browser.
Open DevToolsโ
| Action | Windows / Linux | Mac |
|---|---|---|
| Open or close DevTools | F12 or Ctrl + Shift + I | โ + Option + I |
| Open DevTools on the Console | Ctrl + Shift + J | โ + Option + J |
| Inspect an element on the page | Ctrl + Shift + C | โ + Shift + C |
| Open the Command Menu | Ctrl + Shift + P | โ + Shift + P |
| Open a file of the page | Ctrl + P | โ + P |
| Search across all files | Ctrl + Shift + F | โ + Option + F |
| Open DevTools Settings | F1 or ? | F1 or ? |
Learn the Command Menu first. It is the one shortcut that replaces the others: type "screenshot", "dark", "disable JavaScript", "sensors", "coverage" or "blocking" and run the command, without knowing which panel or menu hides it. Delete the > and it becomes the file finder (Ctrl + P).
Move around DevToolsโ
| Action | Windows / Linux | Mac |
|---|---|---|
| Next / previous panel | Ctrl + ] / Ctrl + [ | โ + ] / โ + [ |
| Switch dock position (bottom, side, ...) | Ctrl + Shift + D | โ + Shift + D |
| Show or hide the drawer (Console, ...) | Esc | Esc |
| Toggle device mode | Ctrl + Shift + M | โ + Shift + M |
| Zoom DevTools in / out / reset | Ctrl + + / Ctrl + - / Ctrl + 0 | โ + + / โ + - / โ + 0 |
The drawer is underrated: press Esc in the Elements or Network panel and a Console opens underneath, so you can run code against what you are looking at.
Debug JavaScript (Sources panel)โ
| Action | Windows / Linux | Mac |
|---|---|---|
| Pause or resume | F8 or Ctrl + \ | F8 or โ + \ |
| Step over the next call | F10 or Ctrl + ' | F10 or โ + ' |
| Step into the next call | F11 or Ctrl + ; | F11 or โ + ; |
| Step out of the current function | Shift + F11 or Ctrl + Shift + ; | Shift + F11 or โ + Shift + ; |
| Toggle a breakpoint on the current line | Ctrl + B | โ + B |
| Deactivate all breakpoints | Ctrl + F8 | โ + F8 |
| Go to line | Ctrl + G | Ctrl + G |
| Go to a function in the file | Ctrl + Shift + O | โ + Shift + O |
On a Mac, the function keys may need Fn, which is why the letter versions exist.
Deactivate, don't delete. Ctrl + F8 switches every breakpoint off at once and keeps them where they are, for when you want the page to run normally for a minute.
Elements panelโ
| Action | Windows / Linux | Mac |
|---|---|---|
| Hide the selected element | H | H |
| Edit the element as HTML | F2 | Fn + F2 |
| Delete the selected element | Delete | Delete |
| Undo a change | Ctrl + Z | โ + Z |
| Expand or collapse a node | โ / โ | โ / โ |
| Search the DOM (text, selector, XPath) | Ctrl + F | โ + F |
H toggles visibility: hidden on the element, so the layout keeps its space. It is the fastest way to see what is underneath a modal, a banner or a sticky header.
Consoleโ
| Action | Windows / Linux | Mac |
|---|---|---|
| Clear the console | Ctrl + L | โ + K |
| New line without running | Shift + Enter | Shift + Enter |
| Previous / next command | โ / โ | โ / โ |
| Accept an autocomplete | Tab or โ | Tab or โ |
The Console also answers to a few shortcuts in code: $0 is the element selected in the Elements panel, $_ the last result, and copy(value) puts any value on your clipboard.
Network panelโ
| Action | Windows / Linux | Mac |
|---|---|---|
| Start or stop recording | Ctrl + E | โ + E |
| Reload, recording from the start | Ctrl + R | โ + R |
| Hard reload, ignoring the cache | Ctrl + Shift + R | โ + Shift + R |
With DevTools open, right-click (or long-press) the browser's reload button for Empty cache and hard reload, which also clears what the page cached. Our guide to the Network tab covers the panel itself: filters, timing, Copy as cURL, blocking and overrides.
Browser shortcuts developers use all dayโ
| Action | Windows / Linux | Mac |
|---|---|---|
| Jump to the address bar | Ctrl + L | โ + L |
| Reopen the last closed tab | Ctrl + Shift + T | โ + Shift + T |
| Next / previous tab | Ctrl + Tab / Ctrl + Shift + Tab | โ + Option + โ / โ + Option + โ |
| View the page source | Ctrl + U | โ + Option + U |
| Open a new incognito window | Ctrl + Shift + N | โ + Shift + N |
| Open the history page | Ctrl + H | โ + Y |
An incognito window is the quickest clean profile: no cookies, no cache, and no extensions unless you allowed them there.
Shortcuts for what DevTools does not doโ
DevTools inspects what the page sends and receives. Changing it, so you can see how the page copes with a different answer, is where an extension takes over. tweak mocks and modifies responses, rewrites headers, redirects and blocks requests, and it has its own shortcuts:
| Action | Windows / Linux | Mac |
|---|---|---|
| Start or stop tweak on the tab | Ctrl + Shift + , | โ + Shift + , |
| Open tweak | Ctrl + Shift + . | โ + Shift + . |
| Open or close the Developer Toolbox | Ctrl + Shift + Y | โ + Shift + Y |
| Search your rules (in tweak) | Ctrl + K | โ + K |
The full list, and how to change them, is in the shortcuts docs.
Make your ownโ
- DevTools: Settings (F1) > Shortcuts lists every shortcut, lets you change one, and can switch the whole keymap to Visual Studio Code's.
- Extensions:
chrome://extensions/shortcutssets or changes the shortcuts of every extension you have installed.
FAQโ
What is the keyboard shortcut to open Chrome DevTools?
F12 or Ctrl + Shift + I on Windows and Linux, Cmd + Option + I on a Mac. Ctrl + Shift + J (Cmd + Option + J) opens it on the Console, and Ctrl + Shift + C (Cmd + Shift + C) opens it in inspect element mode.
What is the most useful DevTools shortcut to learn first?
The Command Menu: Ctrl + Shift + P, or Cmd + Shift + P on a Mac. Type what you want (screenshot, dark mode, disable JavaScript, sensors, blocking) and run it, without knowing which panel or menu it lives in.
How do I see every DevTools shortcut?
Open DevTools Settings with F1 (or ? while DevTools has focus) and pick Shortcuts. It lists every shortcut, and you can switch the keymap to Visual Studio Code's.
Why does a DevTools shortcut not work?
Most of them only work while DevTools has focus. Click inside DevTools first. On a Mac, some function keys need Fn, and the operating system or another extension may take a combination before Chrome sees it.
Summaryโ
Learn three first: open DevTools (F12), inspect an element (Ctrl + Shift + C) and the Command Menu (Ctrl + Shift + P). Add the debugger's step keys when you next set a breakpoint, and Esc for the drawer. The rest you can look up here, or in DevTools Settings > Shortcuts.
If you liked this article, consider sharing (tweeting) it to your followers.
Need something else? Request a feature