Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show whitespace character in Sourcetree Diff

I wanted to see the whitespace characters in diff section of SourceTree.

By selecting Show Whitespaces from options I can see the git diff due to spaces but I am not able to see the space characters.

Is there any way to see whitespace characters ( just like in IDE ) in diff section of SourceTree ?

Is there any way to see tab characters ( just like in IDE ) in diff section of SourceTree ?

like image 587
Yuvraj Patil Avatar asked Jun 29 '17 09:06

Yuvraj Patil


1 Answers

To see tabs differently than spaces, you need to disable the option Tools -> Options -> Diff -> Convert tabs to spaces with width:. In such a situation tabs mangle display of whitespace, and the tab size is fixed to something about 6.7 (including diff markers).

That's how it looks like (below the same file in Notepad++ for reference):

Sourcetree 3.3.4 above, Notepad++ 7.8.5 below

like image 136
mik Avatar answered Sep 25 '22 08:09

mik