Back to Blog
Developer ToolsProductivityChromeDebuggingShortcuts

Chrome DevTools Shortcuts Every Developer Needs But Nobody Teaches

Published on April 4, 202610 min read

Chrome DevTools Shortcuts Every Developer Needs But Nobody Teaches

You probably open DevTools a few times a day. You inspect an element, check the console, maybe look at the Network tab. But Chrome DevTools is an incredibly deep tool, and most developers are using maybe 5% of what it offers.

These are the shortcuts and techniques that separate casual DevTools users from developers who debug at full speed.


Opening DevTools: The Basics You Might Be Doing Wrong

Open DevTools (Cmd/Ctrl + Shift + I or F12)

You know this one. But here is what you might not know:

Open DevTools to Specific Panel

  • Cmd/Ctrl + Shift + J -- opens directly to the Console
  • Cmd/Ctrl + Shift + C -- opens DevTools AND activates the element inspector. This is the fastest way to inspect a specific element.

Toggle Device Toolbar (Cmd/Ctrl + Shift + M)

Switches to mobile/responsive view. Stop dragging the browser window to test responsive designs.


Console Shortcuts That Save Minutes

The Console is more powerful than most developers realize.

$0 -- The Currently Selected Element

After inspecting an element, $0 in the console refers to that element. So instead of writing document.querySelector('.some-complex-selector'), just click the element in the Elements panel and type $0 in the console.

$1 is the previously selected element, $2 the one before that, and so on up to $4.

$() and $$() -- Query Selectors

  • $('selector') is equivalent to document.querySelector()
  • $$('selector') is equivalent to document.querySelectorAll() but returns an actual array instead of a NodeList

These save a surprising amount of typing over a day of debugging.

copy() -- Copy Anything to Clipboard

copy($0) copies the selected element's outer HTML. copy(someObject) copies a JavaScript object as JSON. This is incredibly useful for grabbing data from the page.

console.table()

You probably know console.log(). But console.table() displays arrays and objects as sortable tables. When debugging an array of objects, this is vastly more readable than the default tree view.

console.trace()

Prints a stack trace at the point where it is called. When you are trying to figure out which function called which, this is faster than setting breakpoints.

console.time() and console.timeEnd()

Wrap code in console.time('label') and console.timeEnd('label') to measure execution time. More precise and less messy than Date.now() subtraction.


Elements Panel: Inspect Like a Pro

Edit HTML (F2)

Select any element in the Elements panel and press F2 to edit its HTML directly. No need to right-click and find the edit option.

Hide Element (H)

Select an element and press H to toggle its visibility. This adds visibility: hidden without deleting the element, so the layout does not shift. Perfect for checking what is behind overlapping elements.

Drag and Drop Elements

You can drag elements in the Elements panel to reorder them in the DOM. Useful for quickly testing layout changes.

Force Element State

Right-click an element and choose "Force state" to simulate :hover, :active, :focus, or :visited states. No more trying to hover over an element while also looking at the Styles panel.

Computed Tab

The Computed tab shows the final calculated values for every CSS property. When you cannot figure out why a style is not applying, this tells you exactly what the browser is actually using and where it came from.


Network Tab: Debug API Calls Faster

Filter by Type

Click the filter buttons (XHR, JS, CSS, Img, etc.) to show only specific request types. When debugging API issues, click "Fetch/XHR" to see only API calls without the noise.

Search Across All Requests (Cmd/Ctrl + F)

Opens a search bar that searches across all request URLs, headers, and response bodies. When you need to find which API call returned a specific piece of data, this is invaluable.

Copy as cURL

Right-click any request and choose "Copy as cURL." You get a complete curl command with all headers, cookies, and body data. Paste it into your terminal to replay the exact request. This is the fastest way to debug API issues outside the browser.

Block Request URL

Right-click a request and choose "Block request URL" to see how your app behaves when that resource fails to load. Great for testing error handling and fallbacks.

Throttle Network Speed

Use the throttle dropdown (next to "No throttling") to simulate slow connections. Test how your app loads on 3G or offline. Most developers only test on fast connections, which hides real performance problems.


Sources Panel: Debug JavaScript Properly

Set Breakpoint (Click Line Number)

Click any line number in the Sources panel to set a breakpoint. The code will pause execution at that line so you can inspect variables.

Conditional Breakpoint (Right-Click Line Number)

Right-click a line number and choose "Add conditional breakpoint." The breakpoint only triggers when your condition is true. For example, user.id === 42 -- so you do not have to step through thousands of iterations in a loop.

Logpoint (Right-Click Line Number)

Like a breakpoint, but instead of pausing, it logs a message to the console. You get the power of console.log without modifying your code. This is game-changing for debugging production issues.

Step Through Code

  • F10 -- Step over (execute current line, move to next)
  • F11 -- Step into (enter the function being called)
  • Shift + F11 -- Step out (finish current function, return to caller)
  • F8 -- Resume (continue to next breakpoint)

Watch Expressions

In the Sources panel sidebar, add watch expressions to monitor variable values as you step through code. Better than constantly hovering over variables.


Performance Shortcuts

Lighthouse (in DevTools)

Go to the Lighthouse tab and run an audit. It gives you actionable performance, accessibility, and SEO recommendations. Most developers forget this exists and use the website version instead, but the DevTools version is faster and more reliable.

Performance Monitor (Cmd/Ctrl + Shift + P, type "Show Performance Monitor")

Shows real-time CPU usage, JS heap size, DOM node count, and more. When your app is sluggish, this tells you what resource is being exhausted.

Coverage Tool (Cmd/Ctrl + Shift + P, type "Show Coverage")

Shows how much of your CSS and JavaScript is actually being used on the current page. Red lines are unused code. This is how you identify dead code and reduce bundle size.


The Command Menu: DevTools' Best Kept Secret

Open Command Menu (Cmd/Ctrl + Shift + P)

This is the equivalent of VS Code's command palette, but for DevTools. You can:

  • Switch between panels
  • Take screenshots (type "screenshot" -- it can capture the full page, a specific node, or just the viewport)
  • Toggle features like dark mode, paint flashing, and layout shift regions
  • Access features that have no visible button in the UI

Full page screenshot is particularly useful -- type "Capture full size screenshot" to get a screenshot of the entire scrollable page, not just the visible viewport.


Settings Nobody Changes But Should

Preserve Log

In the Network and Console tabs, check "Preserve log" to keep entries across page navigations. Without this, everything disappears when you navigate, which makes debugging multi-page flows impossible.

Disable Cache

In the Network tab, check "Disable cache" while DevTools is open. This ensures you always see fresh resources during development instead of stale cached versions.

Enable Source Maps

In Settings > Sources, make sure source maps are enabled. This lets you debug your original TypeScript/SCSS code instead of the minified/compiled output.


Becoming a DevTools Power User

The pattern is the same as with any tool: stop using the mouse for things that have keyboard shortcuts. Every time you right-click and dig through a context menu, ask if there is a faster way.

DevTools is the most powerful debugging tool in your browser. The difference between a developer who spends 30 minutes debugging a CSS issue and one who fixes it in 2 minutes is almost always DevTools proficiency, not CSS knowledge.

The best debugger is not a tool. It is a developer who knows their tools deeply enough that debugging feels like a conversation, not a search.

For more developer tips, check out our blog and explore our free developer tools.

Explore Our Free Tools & Games

Check out our curated collection of completely free browser games, tools, and extensions.

Browse Free Stuff

More Articles

Developer ToolsJSON

Stop Squinting at Messy JSON - Format It Instantly (Free Tool Inside)

Messy JSON is a productivity killer. Learn why formatting matters, common JSON pitfalls developers hit daily, and try our free browser-based JSON Formatter that works instantly with zero sign-ups.

7 min readRead More→
Browser GamesFree Games

Best Free Browser Games You Can Play Right Now in 2025

Discover the top free browser games of 2025 that require no downloads, no installs, and no sign-ups. From puzzle games to multiplayer adventures, these games run right in your browser.

8 min readRead More→
Developer ToolsFree Tools

Free Developer Tools Every Programmer Needs in Their Toolkit

A comprehensive guide to the best free developer tools available online. From JSON formatters to regex testers, these browser-based tools will supercharge your productivity.

10 min readRead More→
Chrome ExtensionsProductivity

10 Free Chrome Extensions That Will Boost Your Productivity

These free Chrome extensions will transform how you browse, work, and manage your time online. From tab management to dark mode, these extensions are must-haves.

7 min readRead More→