I cannot figure out how to get the HTML elements to wrap lines in Chrome dev tools. I'm working with some long and complicated SVG paths and I hate scrolling horizontally to check the other element attributes. Word wrap is checked under the settings area in chrome dev tools. Suggestions?
Press Ctrl + U on the keyboard to open the page source tab. Alternatively, right-click anywhere on the page and select View page source from the menu. On the view-source tab, turn on (check) the Line Wrap option.
In text display, line wrap is continuing on a new line when a line is full, so that each line fits into the viewable window, allowing text to be read from top to bottom without any horizontal scrolling.
Looks like there is no Word Wrap available for now :( and seems like people have been asking forever, I just posted my vote for word wrap too
https://code.google.com/p/chromium/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Pri%20M%20Iteration%20ReleaseBlock%20Cr%20Status%20Owner%20Summary%20OS%20Modified&groupby=&sort=&id=73193
Edit: looks like it is a feature by default now (click on the three dots on the top right, then click on Settings):
This is quite an old thread, but unfortunately still relevant.
Word wrap only works in the Elements panel. From the documentation:
As with any text editor you can choose to wrap long lines of code in the Elements panel.
The link in Leon's answer actually refers to the Network panel, although several of the comments suggest that others are also looking at this more generally; e.g.
It would be good if wordwrap is offered for all content.
and ...
I would donate my left kidney for word wrap!
Anyway, if you're mainly editing html, you're in luck - just use the Elements panel instead of the Sources panel. Unfortunately, most of my editing is with JS.
So I'll open a new issue in Chromium and post a link back here, in case anyone wants to support it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With