DEV Community

Cover image for Most used DevTools shortcuts
Hash
Hash

Posted on

2 1

Most used DevTools shortcuts

Using shortcuts makes you faster and a productive developer

Here are some shortcuts I found them useful.

1. Command+Option+I

it opens the last opened panel

2. h

it hides the currently-selected element

3. Command+EE

it clears the network logs

4. ESC

It pulls up the console on any tab

Some Shortcuts in Console

2. $

it equals to

document.querySelector
Enter fullscreen mode Exit fullscreen mode

3. $$

it equals to

document.querySelectorAll
Enter fullscreen mode Exit fullscreen mode

4. $x

it equals to

document.querySelector with xPath
Enter fullscreen mode Exit fullscreen mode

5.$0, $1, ...

$0 It exactly returns the element in the elements' inspector that you selected. (current element)

$1 it returns the previous element
$2 it returns the two previous element

6. Command + K

it equals to

clear()
Enter fullscreen mode Exit fullscreen mode

Here also a video playlist of devtools tips will be updated gradually:

let me know which else do you use regularly, share them in the comments

Best

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (2)

Collapse
 
2kabhishek profile image
Abhishek Keshri

do you have links to any in depth resources? browser devtools is still mysterious to me

Collapse
 
hashcode01 profile image
Hash

I recommend reading developer.chrome.com/docs/devtools/ and its YouTube channel is very updated and well worth watching.

SurveyJS custom survey software

JavaScript Form Builder UI Component

Generate dynamic JSON-driven forms directly in your JavaScript app (Angular, React, Vue.js, jQuery) with a fully customizable drag-and-drop form builder. Easily integrate with any backend system and retain full ownership over your data, with no user or form submission limits.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay