Keyboard shortcuts

Kayce Basques
Kayce Basques
Sofia Emelianova
Sofia Emelianova

This page is a reference of keyboard shortcuts in Chrome DevTools.

You can also find shortcuts in tooltips. Hover over a UI element of DevTools to display its tooltip. If the element has a shortcut, the tooltip includes it.

Keyboard shortcuts for opening DevTools

To open DevTools, press the following keyboard shortcuts while your cursor is focused on the browser viewport:

ActionMacWindows / Linux
Open whatever panel you used lastCommand+Option+IF12 or Control+Shift+I
Open the Console panelCommand+Option+JControl+Shift+J
Open the Elements panelCommand+Shift+C or Command+Option+CControl+Shift+C

Global keyboard shortcuts

The following keyboard shortcuts are available in most, if not all, DevTools panels.

ActionMacWindows / Linux
Show Settings? or Function+F1? or F1
Focus the next panelCommand+]Control+]
Focus the previous panelCommand+[Control+[
Switch back to whatever docking position you last used. If DevTools has been in its default position for the entire session, then this shortcut undocks DevTools into a separate windowCommand+Shift+DControl+Shift+D
Toggle Device ModeCommand+Shift+MControl+Shift+M
Toggle Inspect Element ModeCommand+Shift+CControl+Shift+C
Open the Command MenuCommand+Shift+PControl+Shift+P
Toggle the DrawerEscapeEscape
Normal reloadCommand+RF5 or Control+R
Hard reloadCommand+Shift+RControl+F5 or Control+Shift+R
Search for text within the current panel. Supported only in the Elements, Console, Sources, Performance, Memory, JavaScript Profiler, and Quick Source panels.Command+FControl+F
Opens the Search tab in the Drawer, which lets you search for text across all loaded resourcesCommand+Option+FControl+Shift+F
Open a file in the Sources panelCommand+O or Command+PControl+O or Control+P
Zoom inCommand+Shift++Control+Shift++
Zoom outCommand+-Control+-
Restore default zoom levelCommand+0Control+0
Run snippetPress Command+O to open the Command Menu, type ! followed by the name of the script, then press EnterPress Control+O to open the Command Menu, type ! followed by the name of the script, then press Enter

Elements panel keyboard shortcuts

ActionMacWindows / Linux
Undo changeCommand+ZControl+Z
Redo changeCommand+Shift+ZControl+Y
Select the element above / below the currently-selected elementUp Arrow / Down ArrowUp Arrow / Down Arrow
Expand the currently-selected node. If the node is already expanded, this shortcut selects the element below itRight ArrowRight Arrow
Collapse the currently-selected node. If the node is already collapsed, this shortcut selects the element above itLeft ArrowLeft Arrow
Expand or collapse the currently-selected node and all of its childrenHold Option then click the arrow icon next to the element's nameHold Control+Alt then click the arrow icon next to the element's name
Toggle Edit Attributes mode on the currently-selected elementEnterEnter
Select the next / previous attribute after entering Edit Attributes modeTab / Shift+TabTab / Shift+Tab
Hide the currently-selected elementHH
Toggle Edit as HTML mode on the currently-selected elementFunction+F2F2

Styles pane keyboard shortcuts

ActionMacWindows / Linux
Go to the line where a property value is declaredHold Command then click the property valueHold Control then click the property value
Cycle through the RGBA, HSLA, and Hex representations of a color valueHold Shift then click the Color Preview box next to the valueHold Shift then click the Color Preview box next to the value
Select the next / previous property or valueClick a property name or value then press Tab / Shift+TabClick a property name or value then press Tab / Shift+Tab
Increment / decrement a property value by 0.1Click a value then press Option+Up Arrow / Option+Down ArrowClick a value then press Alt+Up Arrow / Alt+Down Arrow
Increment / decrement a property value by 1Click a value then press Up Arrow / Down ArrowClick a value then press Up Arrow / Down Arrow
Increment / decrement a property value by 10Click a value then press Shift+Up Arrow / Shift+Down ArrowClick a value then press Shift+Up Arrow / Shift+Down Arrow
Increment / decrement a property value by 100Click a value then press Command+Up Arrow / Command+Down ArrowClick a value then press Control+Up Arrow / Control+Down Arrow
Cycle through the degrees (deg), gradians (grad), radians (rad) and turns (turn) representations of an angle valueHold Shift then click the Angle Preview box next to the valueHold Shift then click the Angle Preview box next to the value
Increment / decrement an angle value by 1Click the Angle Preview box next to the value then press Up Arrow / Down ArrowClick the Angle Preview box next to the value then press Up Arrow / Down Arrow
Increment / decrement an angle value by 10Click the Angle Preview box next to the value then press Shift+Up Arrow / Shift+Down ArrowClick the Angle Preview box next to the value then press Shift+Up Arrow / Shift+Down Arrow
Increment / decrement an angle value by 15Click the Angle Preview box next to the value then press Shift, click / mouse slide on the Angle Clock OverlayClick the Angle Preview box next to the value then press Shift, click / mouse slide on the Angle Clock Overlay

Sources panel keyboard shortcuts

ActionMacWindows / Linux
Pause script execution (if currently running) or resume (if currently paused)F8 or Command+\F8 or Control+\
Step over next function callF10 or Command+'F10 or Control+'
Step into next function callF11 or Command+;F11 or Control+;
Step out of current functionShift+F11 or Command+Shift+;Shift+F11 or Control+Shift+;
Continue to a certain line of code while pausedHold Command and then click the line of codeHold Control and then click the line of code
Select the call frame below / above the currently-selected frameControl+. / Control+,Control+. / Control+,
Save changes to local modificationsCommand+SControl+S
Save all changesCommand+Option+SControl+Alt+S
Go to lineControl+GControl+G
Jump to a line number of the currently-open filePress Command+O to open the Command Menu, type : followed by the line number, then press EnterPress Control+O to open the Command Menu, type : followed the line number, then press Enter
Jump to a column of the currently-open file (for example line 5, column 9)Press Command+O to open the Command Menu, type :, then the line number, then another :, then the column number, then press EnterPress Control+O to open the Command Menu, type :, then the line number, then another :, then the column number, then press Enter
Go to a function declaration (if currently-open file is HTML or a script), or a rule set (if currently-open file is a stylesheet)Press Command+Shift+O, then type in the name of the declaration / rule set, or select it from the list of optionsPress Control+Shift+O, then type in the name of the declaration / rule set, or select it from the list of options
Close the active tabOption+WAlt+W
Open next or previous tabFunction+Command+Up or DownControl+Page Up or Page Down
Toggle the Navigation sidebar on the leftCommand+Shift+YControl+Shift+Y
Toggle the Debugger sidebar on the rightCommand+Shift+HControl+Shift+H

Code Editor keyboard shortcuts

ActionMacWindows / Linux
Delete all characters in the last word, up to the cursorOption+DeleteControl+Delete
Add or remove a line-of-code breakpointFocus your cursor on the line and then press Command+BFocus your cursor on the line and then press Control+B
Open the breakpoint edit dialog to edit conditional breakpoints or logpointsFocus your cursor on the line and then press Command+Alt+BFocus your cursor on the line and then press Control+Alt+B
Open the conditional breakpoint dialogCommand+click a line numberControl+click a line number
Open the logpoint dialogCommand+Shift+click a line numberControl+Shift+click a line number
Go to matching bracketControl+MControl+M
Toggle single-line comment. If multiple lines are selected, DevTools adds a comment to the start of each lineCommand+/Control+/
Select / de-select the next occurrence of whatever word the cursor is on. Each occurrence is highlighted simultaneouslyCommand+D / Command+UControl+D / Control+U

Network panel keyboard shortcuts

ActionMacWindows / Linux
Search headers, payloads, and responsesCommand+FControl+F
Start / stop recordingCommand+EControl+E
Record a reloadCommand+RControl+R
Replay a selected XHR requestRR
Hide the details of a selected requestEscapeEscape

Performance panel keyboard shortcuts

ActionMacWindows / Linux
Start / stop recordingCommand+EControl+E
Save recordingCommand+SControl+S
Load recordingCommand+OControl+O

Memory panel keyboard shortcuts

ActionMacWindows / Linux
Start / stop recordingCommand+EControl+E

Console panel keyboard shortcuts

ActionMacWindows / Linux
Accept autocomplete suggestionRight Arrow or TabRight Arrow or Tab
Reject autocomplete suggestionEscapeEscape
Navigate the autocomplete list up or downUp / Down or Control+P / NUp / Down or Control+P / N
Get previous statementUp ArrowUp Arrow
Get next statementDown ArrowDown Arrow
Focus the ConsoleControl+`Control+`
Clear the ConsoleCommand+K or Option+LControl+L
Force a multi-line entry. Note that DevTools should detect multi-line scenarios by default, so this shortcut is now usually unnecessaryShift+ReturnShift+Enter
ExecuteReturnEnter
Expand all sub-properties of an object that's been logged to the ConsoleHold Alt then click Expand >Hold Alt then click Expand >
ActionMacWindows / Linux
Expand/collapse all search resultsCommand+Option+{ or }Control+Shift+{ or }

Recorder panel keyboard shortcuts

ActionMacWindows / Linux
Start or stop recordingCommand+EControl+E
Replay recordingCommand+EnterControl+Enter
Copy recording or selected stepCommand+CControl+C
Toggle code viewCommand+BControl+B

Layers panel keyboard shortcuts

ActionMacWindows / Linux
Move the diagram along the X and Y axesW (up), A (left), S (down), D (right)W (up), A (left), S (down), D (right)
Toggle pan modeXX
Toggle rotate modeVV
Reset the diagram's position and rotation00
Zoom in on the diagramShift++ or mousewheel upShift++ or mousewheel up
Zoom out of the diagramShift+- or mousewheel downShift+- or mousewheel down