Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What tool can do a visual comparison of two sections within the same file?

Good file comparison tools were already discussed to the pain, but my problem is more exotic. Is there any visual text comparison tool (like WinMerge) that would allow me easily do visual comparison on two sections within the same file?

I have multiple configurations within vcproj file and need to maintain them. It is a pain to do this manually -- splitting windows, scrolling character-by character. On top of that xml is very verbose and takes lots of screen real-estate. I cannot believe there is no tool to do automatic file section comparison, since this sounds like a very common problem.

Please, do not offer me to use property pages, I do not want more complexity, I want less. Splitting manually into files and then comparing them is also too medieval (I am doing this now anyways).

like image 494
Ignas Limanauskas Avatar asked Dec 12 '08 03:12

Ignas Limanauskas


2 Answers

I use Beyond Compare (not free, but I think a shareware version is available). You can select the same file for left and right sides, then right-click the beginning of your section on each side and select "Align Manually". This would allow you to compare two sections of the same file relatively easily.

Overall, I highly recommend the product. I haven't tried version 3, which is what they currently have on their Web site, but version 2 is a fabulous tool. A+

like image 88
P Daddy Avatar answered Sep 23 '22 08:09

P Daddy


Emacs Ediff.

like image 43
Michel de Ruiter Avatar answered Sep 21 '22 08:09

Michel de Ruiter