New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap code in comments #1908
Comments
To be frank, it is. They do not wrap content if the code is shown in unified view (like code comments in a PR "conversation" view, example), but wrap content in the split view (example). Because not wrapping content in the split view would cause a lot of problems, impossible actually, because both the left and right parts of the diff are contained in a single Even if you did "unwrap" the lines, then there would be scrollbar for each line in the diff. Wrapped code (in split diff view, even for comments)Non wrapped code (in unified diff view, even for comments) |
Not impossible. Just difficult. |
I so want this. I hate not having soft-wrapping everywhere. |
@bfred-it Did you send a feature request to GitHub? |
I didn't |
Yup, it's difficult. But is it worth it? (That was about unwrapping code in split view anyway, not related to this issue)
Wrapping of code in unified diffs? |
Yes, but I’d be happy to have just the code in comments wrapped. |
@IssueHunt has funded $80.00 to this issue.
|
I've been using the "GitHub Toggle Code Wrap" UserScript for long time now: https://greasyfork.org/en/scripts/18789-github-toggle-code-wrap It will add an button to switch code wrapping. |
@sindresorhus has rewarded $72.00 to @notlmn. See it on IssueHunt
|
GitHub is inconsistent. Code wraps in PR/commit diffs, but not in comments:
PR (wraps)
Review comment (no wrap)
Code block in comment (no wrap)
IssueHunt Summary
notlmn has been rewarded.
Sponsors (Total: $80.00)
Tips
The text was updated successfully, but these errors were encountered: