Sublime Forum

Word wrap in diff

#1

This would be very nice. My ‘old’ tool was Meld, and when diffing non-code files that are not nicely within a certain width that fits in the diff/merge tool it is much nicer to have word wrap on than to have to scroll left and right to see the diffs within lines.

For the wish list.

(I searched “word wrap sublime merge”.)

2 Likes

#2

You can try creating a file named Diff.sublime-settings in your Merge User package with the following contents. Use Preferences > Browse Packages... to find the location as you would in Text.

{
    "word_wrap": true
}
2 Likes

#3

Fantastic! Thank you.

0 Likes

#4

I just discovered that I can copy Diff.sublime-settings to Merge.sublime-settings and get wrapping in the merge tool as well. Even more fantastic!!

1 Like

#5

FYI for anyone using the wrapping in merge, I’ve discovered that with word wrapping in the merge there is an issue with the scrollbar thinking it is at the bottom, but there is still more content cut off at the bottom of the files. (It is issue 323 in github for sublime merge.)

0 Likes