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

45.2k views Asked by At

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

7

There are 7 answers

4
AllTradesJack On BEST ANSWER

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.

2
user3145814 On

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.

0
artemisian On

Click on the element:

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

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

0
Luke Floden On

CTRL + SHIFT + ALT + LEFTCLICK

0
NorthernFern On

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"

0
Pedz On

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.

0
Kenny Yarmolchuk On

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