Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Horizontal scrolling in Chrome Dev Tools elements inspector?

So, one of the things I hate about the Chrome Dev Tools is this:

enter image description here

Basically, when the html is deeply nested the elements tab starts to wrap lines to try and fit everything in the panel, instead of using an horizontal scrollbar, which would make much more sense here.

I can't believe such an awkward layout is intended, it's literally unreadable... is there a setting to prevent this?

like image 641
Master_T Avatar asked Oct 16 '19 15:10

Master_T


People also ask

How do I enable horizontal scrolling in Chrome?

Pressing the “FN + F11” key twice from your keyboard will fix this issue for you.

How do you know which element is causing horizontal scroll?

To find out which elements cause a horizontal scrollbar, you can use the devtools to delete elements one by one until the scrollbar disappears.

How do I enable horizontal scrolling in CSS?

To enable horizontal scrolling, we can use the CSS property overflow-x. If we assign the value scroll to the overflow-x property of the container element, the browser will hide horizontally overflowing content and make it accessible via horizontal scrolling.

How do I make Chrome developer tools horizontal?

Go horizontal This isn't an ideal layout for most web debugging tasks, so click-and-hold the layout icon (in the top right of the DevTools Panel's menubar) to see the horizontal-layout option.


1 Answers

Found a setting in the DevTools that solved this issue:

If you uncheck Word wrap everything should be fine.

The setting is located here: DevTools Settings > General > Elements > Word wrap

enter image description here

like image 196
Frederik Voordeckers Avatar answered Oct 20 '22 14:10

Frederik Voordeckers