Github code line wrap icon

Github code line wrap

by ravenblack

v1.2 Updated Jan 24, 2025 3.51KiB
CWS
18
Users
★ 0.00
0 reviews
#104064
of 207.3K
developer
#8791 of 18.1K
⚠️Not updated in over a year

Description

Github web UI does a thing in code reviews where it word wraps like a word processor rather than like a code text editor. This can make Python code, especially, difficult to review, when it incorrectly looks like the indent level has changed, or obscures the fact that the indent level has changed. This extension simply adds a bit of extra CSS on github pages that makes the wrap occur at the first character that exceeds the width of the view, rather than moving "words" (which are often entire lines of code). Some issues reported about the default behavior: https://github.com/orgs/community/discussions/45559 https://github.com/orgs/community/discussions/42298#discussioncomment-4725465 Note, the bookmarklet solution in that second link unwraps lines entirely, which some people may find preferable, but with long lines it can cause a mess of overlapped text. This extension, on the other hand, makes the content stay within the pane width, and wraps like vim's default behavior.
Github code line wrap screenshot 1

Reviews

Loading reviews...

Details

Version 1.2
Updated Jan 24, 2025
Size 3.51KiB
First Seen Mar 30, 2026