react icon indicating copy to clipboard operation
react copied to clipboard

Hotkey for "Select an element in the page to inspect it" in Chrome extension

Open skoshy opened this issue 4 years ago • 7 comments

Reopening https://github.com/facebook/react-devtools/issues/966 as I feel it'd still be a great feature to have.

To reiterate, it'd be great to have a hotkey to trigger the "Select an element in the page to inspect it" functionality, similar to how Ctrl + Shift + C triggers Chrome's element inspector mode.

skoshy avatar Nov 07 '19 05:11 skoshy

I'll give this a try !

gejimayu avatar Nov 11 '19 08:11 gejimayu

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.

stale[bot] avatar Feb 09 '20 08:02 stale[bot]

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!

stale[bot] avatar Feb 16 '20 11:02 stale[bot]

Reopening since the PR that would implement this feature is still open.

eps1lon avatar Jan 14 '21 17:01 eps1lon

Merge it please

happylolonly avatar Jan 25 '21 20:01 happylolonly

👍

SimsonEnduro avatar Apr 21 '22 10:04 SimsonEnduro

+1 for this.

For fellow Googlers: An easy workaround for this is to use the normal element selector (Ctrl-shift-C) and then switch to the Components tab, where the corresponding React component (or something close to it) will be selected.

LakeYS avatar Jul 31 '22 20:07 LakeYS

Improving on @LakeYS’s workaround (thanks!)

In DevTools, drag the React Components tab next to Elements, like this:

CleanShot 2023-08-16 at 15 49 22@2x

So you can use these hotkeys in succession:

  1. Shift C selects the element
  2. ] switches to React panel (with component highlighted)

shaunlebron avatar Aug 16 '23 20:08 shaunlebron

Wow, surprised this isn't implemented.

spacecat avatar Nov 27 '23 14:11 spacecat

Wow, surprised this isn't implemented.

yes, me too...

happylolonly avatar Nov 27 '23 14:11 happylolonly