Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 369
Jon Rose Avatar asked Aug 23 '13 19:08

Jon Rose


People also ask

How do I change the layout of inspect element?

Click the menu bar in the top right corner. Goto settings => preferences. Under the appearance setting there is an option called panel layout which allows you to change the layout.

How do you expand an object in console?

In the case of the objects with massive depth, Ctrl+Alt+Click should be applied a few times until it expands whole object, not only once.

How do you show hidden elements in inspect?

Using Inspect Element, you can reveal passwords hidden by asterisks in login forms. Example: In the Inspect Element window, find the element tab.


4 Answers

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.

like image 59
AllTradesJack Avatar answered Oct 16 '22 21:10

AllTradesJack


CTRL + SHIFT + ALT + LEFTCLICK

like image 38
Luke Floden Avatar answered Oct 16 '22 21:10

Luke Floden


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.

like image 5
user3145814 Avatar answered Oct 16 '22 21:10

user3145814


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
like image 1
Kenny Yarmolchuk Avatar answered Oct 16 '22 22:10

Kenny Yarmolchuk