Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I copy all text in Chrome's "Elements" inspector?

I would like to copy all of the expanded code found in the "Elements" pane of Google Chrome's WebKit inspector to my clipboard. I'm on OS X.

Here is a screenshot of this pane (on the left side of the screen):

It appears that I am only able to select individual lines or sections, but not the entire text.

like image 378
rubik's sphere Avatar asked Aug 13 '17 17:08

rubik's sphere


1 Answers

I've found the answer to my question. The solution is mentioned obliquely in parentheses in step one of the following answer:

  • Stack Overflow - Copying HTML code in Google Chrome's inspect element

You have to right-click the topmost <html> element, and then click Edit as HTML.

The full code will now exist in a standard, editable text field, where you can finally Select All and Copy the text contents to the clipboard.

like image 102
rubik's sphere Avatar answered Nov 15 '22 10:11

rubik's sphere