How do you expand all elements in the WebKit Inspector elements view?
Asked Answered
T

7

61

Is there a way to expand all elements in the elements view of the Chrome WebKit inspector?

Transmittance answered 23/8, 2013 at 19:11 Comment(1)
I don't know, but I'm wondering myself and I just found this question through Google. Did you ever find out?Borrego
S
121

If you hold ctrl + alt for windows (just opt on a mac) while clicking on the arrow of the element you want to expand, it will expand and all of its children will expand. So, if you ctrl + alt click on the <html> tag, that should expand the entire page.

This Link lists the keyboard shortcuts for chrome dev tools, including that one.

Saberhagen answered 6/8, 2014 at 17:33 Comment(4)
Just holding Alt and clicking works for me on Windows - thanksPacksaddle
Saved me a few attempts, trying to screenshot code before the redirect timer kicks in :DYielding
Just Alt on Linux.Mithgarthr
Shift+Alt on ubuntuRepertoire
C
6

CTRL + SHIFT + ALT + LEFTCLICK

Contexture answered 10/1, 2017 at 19:57 Comment(0)
M
5

Here's how i've decided to do it:

Highlight the element tag I wish to inspect, if it's the whole (expand all) the requirement, then highlight <body> tag, click F2.

Note: F2 is actually the shortcut for 'Toggle edit as HTML'. You can directly make any change in this mode, changes are reflected on web page. You may right-click within this new code view-window and enable/disable wordwrap.

Massage answered 30/12, 2013 at 9:4 Comment(2)
boom. Just what I wanted. Thanks!Transmittance
It works, thanks. An additional wish is for that editable content to be formatted.Stier
P
1

On Chrome while clicking the arrow in the source-code, will expand all children elements.


  • ALT + Click the Drop Arrow = Unwrap One level by one
  • ALT + CTRL + Click the Drop Arrow = Unwrap "All" Level at once
Pantie answered 18/1, 2018 at 19:0 Comment(0)
H
1

Click on the element:

  • Alt + Right Arrow (Expand)
  • Alt + Left Arrow (Collapse)

You can move around with the Arrow keys and using Tab.

Hastate answered 12/5, 2021 at 13:24 Comment(0)
P
1

these approaches seem convoluted, all you have to do to make all the arrow symbols change from pointing towards the right to pointing down is click the html tag and in the dropdown box click "expand recursively"

Phlox answered 4/7, 2021 at 21:1 Comment(0)
A
0

I found just right clicking on the tag and selecting "Expand Recursively" worked for me. I'm using Chrome Version 66.

You can also right click and "Collapse Children" to collapse it all again.

Adham answered 8/5, 2018 at 3:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.