Cheat Sheet Library

Chrome DevTools Cheat Sheet

Built into Chrome and Edge. Shortcuts are for Windows / Linux; on macOS Ctrl → ⌘ and Shift → ⌥ where shown.

  • 61 entries
  • 7 sections
  • Updated

61 entries

On this page

Open & Navigate #

ShortcutAction
F12 or Ctrl + Shift + IOpen DevTools (mac: ⌘ ⌥ I)
Ctrl + Shift + CInspect element picker (mac: ⌘ ⇧ C)
Ctrl + Shift + JOpen the Console (mac: ⌘ ⌥ J)
Ctrl + Shift + PCommand Menu (run any DevTools command)
Ctrl + POpen a source file
Ctrl + Shift + MDevice toolbar (mobile / responsive view)
Ctrl + [ / Ctrl + ]Previous / next panel
EscToggle the drawer (Console under any panel)
Ctrl + Shift + DSwitch dock position
Ctrl + Shift + FSearch across all loaded sources
Ctrl + Shift + RHard reload

With DevTools open, right-click the reload button → Empty cache and hard reload.

Elements Panel #

ActionHow
Edit text / attributeDouble-click it
Edit as HTMLF2
Hide elementH
Delete elementDelete
UndoCtrl + Z
Expand all childrenAlt + click the arrow
Force :hover, :focus…Styles → :hov
Add a classStyles → .cls
Change a numberSelect it and press ↑/↓ (Shift = ×10, Alt = ×0.1)
Color picker / eyedropperClick the color square
Flex / grid overlayClick the flex / grid badge
Copy selector / JS pathRight-click element → Copy
Break on DOM changeRight-click → Break on → subtree modifications

Console Helpers #

CommandAction
$0The currently selected element
$('sel') / $$('sel')querySelector / querySelectorAll (as an array)
$_Result of the last expression
copy(obj)Copy to the clipboard (great for JSON)
console.table(array)Show as a table
getEventListeners($0)Event listeners on an element
monitorEvents(window, "resize")Log events
inspect(el)Jump to it in Elements
clear() or Ctrl + LClear the console
👁 Create live expressionWatch a value continuously

Sources / Debugging #

Shortcut / featureAction
Click a line numberBreakpoint
Right-click the line numberConditional breakpoint / logpoint (log without editing code)
debugger; in your codePause here
F8Pause / resume
F10 / F11 / Shift + F11Step over / into / out
Ctrl + BToggle breakpoint on the current line
{} buttonPretty-print minified code
OverridesEdit files and keep the changes across reloads

Network Panel #

FeatureUse
Filter: Fetch/XHR, JS, Img…Show only API calls, scripts…
Filter: status-code:404, -domain:google.comAdvanced filters
Disable cacheAlways fetch fresh files (while DevTools is open)
Preserve logKeep requests across page loads
Throttling: Slow 4G, OfflineTest slow / no connection
Right-click → Copy as cURL / fetchReproduce a request elsewhere (Postman, terminal)
Right-click → Block request URLTest what breaks without a file
Ctrl + EStart / stop recording

Application Panel #

SectionUse
Local / Session StorageView, edit and delete keys
CookiesEdit or delete cookies
IndexedDBBrowse client databases
Service WorkersUpdate / unregister (PWA debugging)
Storage → Clear site dataFull reset for the site

Useful Command Menu Commands (Ctrl + Shift + P) #

TypeDoes
screenshotCapture a full-size or node screenshot
disable javascriptTest without JS
renderingPaint flashing, emulate prefers-color-scheme: dark, vision deficiencies
coverageUnused CSS / JS
lighthousePerformance, accessibility and SEO audit
sensorsFake geolocation and orientation