Item logo image for Github code line wrap

Github code line wrap

Item media 1 (screenshot) for Github code line wrap

Overview

Line break at view width rather than wrapping at 'words' on github code views and reviews.

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.

0 out of 5No ratings

Google doesn't verify reviews. Learn more about results and reviews.

Details

  • Version
    1.2
  • Updated
    January 24, 2025
  • Offered by
    ravenblack
  • Size
    3.51KiB
  • Languages
    English
  • Developer
    Email
    ravenblack@gmail.com
  • Non-trader
    This developer has not identified itself as a trader. For consumers in the European Union, please note that consumer rights do not apply to contracts between you and this developer.

Privacy

The developer has disclosed that it will not collect or use your data.

This developer declares that your data is

  • Not being sold to third parties, outside of the approved use cases
  • Not being used or transferred for purposes that are unrelated to the item's core functionality
  • Not being used or transferred to determine creditworthiness or for lending purposes

Support

Related

Conventional Comments (GitHub) - by Pullpo

5.0(1)

Helps format code review comments on GitHub using the Conventional Comments standard.

GitHub Better Line Counts

5.0(5)

Remove generated files from GitHub line counts

GitHub Repo Size

4.6(14)

Show size summaries of GitHub repos

GitHub File Diff

0.0(0)

View diffs of files and directories on GitHub.

GitHub Code Folding

5.0(16)

Enable code folding when viewing files in GitHub.

Outline HTML Elements

5.0(4)

Outline HTML elements with a colorful border without affecting the layout to inspect website structure.

Pull Request Review Helper

3.0(3)

Optimize Pull Request Reviews and Focus on the Code that Matters Most

Git Well Soon

4.7(6)

A lightweight Chrome extension to hide whitespace in GitHub

UI Inspector - Visual CSS Editor

4.1(9)

Inspect and visually edit elements and their CSS directly on the page for faster design and UI debugging.

CodeToSpan for Translation

4.9(8)

Corrects translation errors in programming docs by replacing code tags with span tags, enhancing readability.

Element Inspect

5.0(4)

Inspect padding, margin, tag, class, and size by hovering over elements.

Letterboxd Text Formatter

4.1(18)

A simple interface for formatting Letterboxd reviews, comments, and more.

Conventional Comments (GitHub) - by Pullpo

5.0(1)

Helps format code review comments on GitHub using the Conventional Comments standard.

GitHub Better Line Counts

5.0(5)

Remove generated files from GitHub line counts

GitHub Repo Size

4.6(14)

Show size summaries of GitHub repos

GitHub File Diff

0.0(0)

View diffs of files and directories on GitHub.

GitHub Code Folding

5.0(16)

Enable code folding when viewing files in GitHub.

Outline HTML Elements

5.0(4)

Outline HTML elements with a colorful border without affecting the layout to inspect website structure.

Pull Request Review Helper

3.0(3)

Optimize Pull Request Reviews and Focus on the Code that Matters Most

Git Well Soon

4.7(6)

A lightweight Chrome extension to hide whitespace in GitHub

Google apps