Word Wrap in Diff Viewer
As a programmer who frequently works with files with long lines of code, I would like see them in a word-wrapped manner in the diff view in order to actually see the entire code on one screen.
An example of such a case are Markdown files that have been edited with Typora or another WYSIWYG Markdown editor. Such editors will put entire blocks of text onto a single line. When checking those into Git and then looking at the diff using GitKraken, a long scrollbar appears at the bottom. This is a bit inconvenient for working.
Comments: 24
Oldest
•
Newest
•
Most likes
•
Fewest likes
-
16 Jun, '23
AnikoHighlighted comment
My team would also need this as we work with long lines of code. The editor that we use for writing code allows line wrap, so it makes it inconvenient to have to keep dragging the scrollbar on the bottom back and forth. -
02 Nov, '21
OnlineCopI would also like to recommend that this not be a global Preferences setting, as it makes more sense to toggle this as-needed from the View menu.
-
09 Apr, '22
gzzhttps://github.com/microsoft/vscode/issues/11387
For the developers: the diff view word wrapping functionality seems added to monaco editor, so upgrading the monaco editor version should make word wrapping work for diff view.
I need this desperately, especially for diff-ing latex and markdown files with very long lines. Hope you can consider it, thanks! -
18 May, '22
David Magalhães SousaThis is absolutely mandatory for latex files, since they also contain one-line chunks of text and becomes impossible to compare if they don't wrap.
-
24 Jun, '22
TwoleelandWord wrapping should be a standard toggling option which would make daily work a lot easier!
-
09 Dec, '22
ArianeI really hope you add this. Scrolling left and right in code has always infuriated me.
-
19 Jul, '23
BenI can just say what all the others have said before: Please make this a priority.
Our author team works with Git and seeing changes in GitKraken is such a performance booster. Unfortunately, the missing line wrap makes it really cumbersome... -
27 Jul, '23
Allison SheridanI use git with my partner for text files and it's not uncommon to have an entire paragraph highlighted as a conflict when there's just one word that's different. It's impossible to find the difference between the two with it being all on one line.
If you can't do that (and I'm not sure why the word wrap setting doesn't do it), could you at least highlight what's different between the two? -
28 Jul, '23
Bart BWhen working with code on a wide screen the lack of wrap is tolerable, but even code on a laptop can get frustrating.
Where things REALLY fall apart is when working on prose in plain-text markup languages like Markdown — entire paragraphs get rendered as a single endlessly scrolling line! -
10 Aug, '23
Adam RalphThe lack of word wrapping is the thing that most often makes me reach for an external diff viewer.
-
03 Nov, '23
JeremyAgreed. I find it very difficult to read very long lines, and when you then split the screen in half and force me to scroll sideways back and forth...that's an awful developer experience. Suffering from ADHD, I need to cut down on all the distractions and frustrations as possible to maintain my focus. This is not helping.
-
01 Dec, '23
DDWould love to see this feature implemented, working on a laptop it's a pain to compare longer lines
-
27 Feb, '25
Kyle TolleI am tracking my novel and other writings with git and using git kraken as the UI. Showing long paragraphs of prose as a single line makes reviewing changes really tedious. Wish this setting to soft wrap long lines existed too, and was as easy as clicking a button within the diff view, like you can with ignoring leading/trailing whitespace.
-
25 Jul, '25
David JI have QUIT using GitKraken for some projects which are impractical to handle without word-wrapped Diffs because of this.
For those projects, I'm using the internal git tools in VSCode (Which handle wrapped diffs)
The more comfortable with it I get, the more likely I will stop using GitKraken entirely... -
08 Feb
Allison SheridanYou have NO idea how insanely happy it makes me to have this implemented. My teammates hated me because if I had to look at a diff I'd just throw up my hands and make them tell me what changed! Now I can SEE it!