18

When I compare 2 large files
I used winmerge
It is a great tool that can find the delta between 2 files

In my case
Each of 2 files nearly contains 3000 lines
And there are some lines ONLY contain changes

Any Way to make identical lines in both files not to be shown when compare?
And show ONLY lines that have deltas?

To can inspect only DELTA lines and minimize scrolling overhead hover too long vertical files comparison result

Ahmed Nabil
  • 17,392
  • 11
  • 61
  • 88

2 Answers2

36

In version 2.16 you can go to menu View - Diff Context and select 0 lines. This will only make visible the different lines in 2 files, and hide the rest.

Alin Oltean
  • 361
  • 3
  • 2
  • 1
    This is now the correct answer. This seems to be default behaviour in a new installed Winmerge, what confused the hell out of me... where are the identical lines??? But now I know how to configure winmerge back to the old behaviour, Thanks! – lynxSven Oct 08 '20 at 09:57
  • 1
    With `CTRL-D` you can toggle between all lines and your selection of 0-9 lines – dim Aug 28 '22 at 18:27
5

EDIT: My answer is not correct anymore. See answer blow.

OLD ANSER:

From the winmerge FAQ:

4.6. Can I hide similar lines in a file comparison, so that only different lines are visible?

No, you can't. Many users have requested this feature but we don't have any plans to implement it. We don't believe it would really improve usability.

Fabian S.
  • 909
  • 6
  • 20
  • 15
    It's amazing to me that developers could be so oblivious to the needs of their userbase that they believe that a feature **requested by many users** would *not* improve usability. – localhost Oct 20 '16 at 00:03
  • Thanks, so we can move between changes using buttons `ALT` + `UP` or `DOWN` – Ahmed Nabil Jan 11 '19 at 14:31
  • 1
    Actually this is outdated, currently as Alin Oltean responded it is now available. This answer should be unmarked, and corrected to the one for Alin Oltean – Allan.C Aug 22 '20 at 04:24
  • As of 2022 you can indeed just go to "View > Diff Context" and select "0 lines". This answer should be edited/removed. – Bruno Leveque May 19 '22 at 17:14