Chrome DevTools keyboard shortcuts
Chrome DevTools are the web developer tools built into Google Chrome. These keys open the panels, inspect elements, run the console and step through JavaScript.
Most used Chrome DevTools keyboard shortcuts
The Chrome DevTools shortcuts worth learning first. The full list follows, grouped by task.
- Open or close DevToolsMacOptionCmdIWindowsF12orCtrlShiftILinuxF12orCtrlShiftI
- Open the Console panelMacOptionCmdJWindowsCtrlShiftJLinuxCtrlShiftJ
- Inspect an elementMacShiftCmdCWindowsCtrlShiftCLinuxCtrlShiftC
- Open the Command MenuMacShiftCmdPWindowsCtrlShiftPLinuxCtrlShiftP
- Open a fileMacCmdPWindowsCtrlPLinuxCtrlP
- Toggle device modeMacShiftCmdMWindowsCtrlShiftMLinuxCtrlShiftM
- Show or hide the drawerMacEscWindowsEscLinuxEsc
- Pause or resume the scriptMacF8orCmd\WindowsF8orCtrl\LinuxF8orCtrl\
- Step over the next callMacF10orCmd'WindowsF10orCtrl'LinuxF10orCtrl'
- Toggle a breakpointMacCmdBWindowsCtrlBLinuxCtrlB
Opening DevTools
6 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Open or close DevTools | OptionCmdI | F12orCtrlShiftI | F12orCtrlShiftI |
| Open the Console panel | OptionCmdJ | CtrlShiftJ | CtrlShiftJ |
| Inspect an element | ShiftCmdC | CtrlShiftC | CtrlShiftC |
| Open the Command Menu | ShiftCmdP | CtrlShiftP | CtrlShiftP |
| Open DevTools settings | F1orShift/ | F1orShift/ | F1orShift/ |
| Switch the dock position | ShiftCmdD | CtrlShiftD | CtrlShiftD |
Panels
7 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Next panel | Cmd] | Ctrl] | Ctrl] |
| Previous panel | Cmd[ | Ctrl[ | Ctrl[ |
| Show or hide the drawer | Esc | Esc | Esc |
| Toggle device mode | ShiftCmdM | CtrlShiftM | CtrlShiftM |
| Search across all loaded files | OptionCmdF | CtrlShiftF | CtrlShiftF |
| Search in the current panel | CmdF | CtrlF | CtrlF |
| Start or stop recording (Network, Performance) | CmdE | CtrlE | CtrlE |
Elements panel
6 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Hide the selected elementElements panel | H | H | H |
| Edit the element as HTMLElements panel | F2 | F2 | F2 |
| Expand the nodeElements panel | → | → | → |
| Collapse the nodeElements panel | ← | ← | ← |
| Undo the last changeElements panel | CmdZ | CtrlZ | CtrlZ |
| Delete the elementElements panel | Delete | Delete | Delete |
Console
4 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Clear the consoleConsole | CmdK | CtrlL | CtrlL |
| New line without runningConsole | ShiftEnter | ShiftEnter | ShiftEnter |
| Accept the suggestionConsole | Tabor→ | Tabor→ | Tabor→ |
| Previous commandConsole | ↑ | ↑ | ↑ |
Sources and debugging
12 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Open a fileSources panel | CmdP | CtrlP | CtrlP |
| Go to a function in the fileSources panel | ShiftCmdO | CtrlShiftO | CtrlShiftO |
| Go to a lineSources panel | CtrlG | CtrlG | CtrlG |
| Toggle a breakpointSources panel | CmdB | CtrlB | CtrlB |
| Pause or resume the scriptSources panel | F8orCmd\ | F8orCtrl\ | F8orCtrl\ |
| Step over the next callPaused | F10orCmd' | F10orCtrl' | F10orCtrl' |
| Step into the next callPaused | F11orCmd; | F11orCtrl; | F11orCtrl; |
| Step out of the functionPaused | ShiftF11orShiftCmd; | ShiftF11orCtrlShift; | ShiftF11orCtrlShift; |
| Run the snippetSources panel, snippet open | CmdEnter | CtrlEnter | CtrlEnter |
| Save changes to the fileSources panel | CmdS | CtrlS | CtrlS |
| Comment or uncomment the lineSources panel | Cmd/ | Ctrl/ | Ctrl/ |
| Close the file tabSources panel | OptionW | AltW | AltW |
No shortcuts match. Try fewer words, the key names only, or search every app.
Show the key map: which keys Chrome DevTools uses mostDarker orange = used by more shortcuts
Chrome DevTools Elements panel shortcuts
- Hide the selected elementMacHWindowsHLinuxH
- Edit the element as HTMLMacF2WindowsF2LinuxF2
- Expand the nodeMac→Windows→Linux→
- Collapse the nodeMac←Windows←Linux←
- Undo the last changeMacCmdZWindowsCtrlZLinuxCtrlZ
- Delete the elementMacDeleteWindowsDeleteLinuxDelete
Chrome DevTools Console shortcuts
- Clear the consoleMacCmdKWindowsCtrlLLinuxCtrlL
- New line without runningMacShiftEnterWindowsShiftEnterLinuxShiftEnter
- Accept the suggestionMacTabor→WindowsTabor→LinuxTabor→
- Previous commandMac↑Windows↑Linux↑
Debugging shortcuts in the Chrome DevTools Sources panel
- Go to a function in the fileMacShiftCmdOWindowsCtrlShiftOLinuxCtrlShiftO
- Go to a lineMacCtrlGWindowsCtrlGLinuxCtrlG
- Step into the next callMacF11orCmd;WindowsF11orCtrl;LinuxF11orCtrl;
- Step out of the functionMacShiftF11orShiftCmd;WindowsShiftF11orCtrlShift;LinuxShiftF11orCtrlShift;
- Run the snippetMacCmdEnterWindowsCtrlEnterLinuxCtrlEnter
- Save changes to the fileMacCmdSWindowsCtrlSLinuxCtrlS
- Comment or uncomment the lineMacCmd/WindowsCtrl/LinuxCtrl/
- Close the file tabMacOptionWWindowsAltWLinuxAltW
Switch panels, dock and device mode in Chrome DevTools
- Open DevTools settingsMacF1orShift/WindowsF1orShift/LinuxF1orShift/
- Switch the dock positionMacShiftCmdDWindowsCtrlShiftDLinuxCtrlShiftD
- Next panelMacCmd]WindowsCtrl]LinuxCtrl]
- Previous panelMacCmd[WindowsCtrl[LinuxCtrl[
- Search across all loaded filesMacOptionCmdFWindowsCtrlShiftFLinuxCtrlShiftF
- Search in the current panelMacCmdFWindowsCtrlFLinuxCtrlF
- Start or stop recording (Network, Performance)MacCmdEWindowsCtrlELinuxCtrlE
- VS Code keys
- Settings > Shortcuts can switch DevTools to Visual Studio Code's keys for the Sources editor, and lets you change single shortcuts.
Chrome DevTools keyboard shortcuts: questions
- How do I open DevTools in Chrome?
- Press F12 or Ctrl+Shift+I on Windows and Linux, or Cmd+Option+I on a Mac. Cmd+Option+J or Ctrl+Shift+J opens straight to the Console.
- Why does the DevTools shortcut not open DevTools?
- On laptops F12 may need Fn; Ctrl+Shift+I (Cmd+Option+I on Mac) works without it. On a work or school computer, an administrator policy can turn DevTools off: check chrome://policy for DeveloperToolsAvailability.
These are the default key bindings in Chrome DevTools Chrome 142, as published by Google. Shortcuts that need an extension, an add-in or a changed keymap are left out. Where two combinations do the same thing, both are shown.
Single-system lists: Chrome DevTools keyboard shortcuts for Mac, Chrome DevTools keyboard shortcuts for Windows, Chrome DevTools keyboard shortcuts for Linux.
Each shortcut has its own page with the keys for every system, related shortcuts and the same action in other apps. The printable cheat sheet fits the whole list on one or two pages.