It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SourceTree: Soft wrap code for internal diff window

Oleg Detinin Jun 03, 2012


Is it possible to implement a soft wrap of text in the internal SourceTree diff window, so no horizontal scrollbars will be displayed ? It is much easier to scroll up/down rather than left right.

9 answers

1 accepted

2 votes
Answer accepted
Steve Streeting Jun 04, 2012

It's possible, but actually I would find that more difficult to read, since the lines then become variable height. Possibly an option that could be added though.

Oleg Detinin Jun 04, 2012

Thanks Steve ! It will be VERY VERY helpful !

Also, this can be (or rather should be) an option in preferneces (for those who prefer to scroll left/right). As for a lines with variable height -- soft wrap can be represented with dots, like this:

Thanks again !

Steven Bamford Aug 23, 2012

I would find this option extremely useful. As well as code, I use git for documents (written in LaTeX), in which (if the editor is using soft wrapping) sometimes an entire paragraph will be in a single line. It would make sense for lines to wrap in this case. Highlighting changed words within lines (like FileMerge) would also be really useful in this case.

Helga Schneider Oct 07, 2012

+1 for adding an option, which would be much improving my workflow. I have the same scenario as Steven, using git through SourceTree for keeping LaTeX sources with soft wrapped paragraphs.

Jared Richardson Feb 23, 2015

I'm dealing with Markdown docs and the scrolling is makes it difficult to use. Optional word wrap would be very useful.

Dave Scotese Sep 13, 2015

The more we embellish the feature, the longer it will take to implement.

Please just add an option to the context menu at the top with a checkmark for "wrap" and if it's checked, then wrap lines and push the line numbers down.

7 votes
Jorge Hernández Feb 11, 2014

It is not useful but imperative for comparing prose in plain text. Paragraphs can be one single ultra-long line if one relies on the text editor to soft wrap lines (and why wouldn’t anyone), so no soft wrapping makes the diff tool useless.

Of course, for plain text prose, lines as a unit of comparison does not make sense at all, so it would be even more useful if, on top of soft line wrapping, there was the option to compare differences at word level, inline, like `git --color-words` or Diff, Match and Patch’s diff

6 votes
Felix Breuer Jan 25, 2014

I also track text documents (LaTeX) in git. Having both line wrapping and intra-line diffs in SourceTree would be immensely valuable to me.

Saiwing Yeung Mar 03, 2015

Yes, please add `dwdiff` style diff as an option.

5 votes
Luke Crook Apr 28, 2014

diff wrap is absolutely a requirement for comparing documentation. Please add this.

I concur to others. It may seem like a burden for code but for prose, e.g. LaTeX documents it's a must, the diff is really completely useless without it.

1 vote
Luke Crook Oct 01, 2014

org-mode + latex + git ftw.

Please add line wrap.

1 vote
Ed Hagen Oct 11, 2014

Agreed. Soft wrap plus intraline diffs. Code is increasingly interwoven with text, as in sweave and rmarkdown docs.

0 votes
Jared Richardson Feb 23, 2015

This would be very helpful when viewing diffs for prose, comments, etc.

0 votes
Todd Patterson Jan 07, 2016

I would also really like to have this option. Looks like the request / improvement is being tracked here -

Just voted for it.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,956 views 14 18
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you