可以比较文件的部分的差异工具 [英] Diff tool that can compare sub-sections of files

查看:95
本文介绍了可以比较文件的部分的差异工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个差异工具,这将允许我比较一个文件的一个子部分与另一个文件的一部分,甚至本身。最好是以日食为基础,但会采取所有的建议。



是的,我知道我可以将这两个部分复制到不同的文件中进行比较,但是当你尝试时,这很麻烦做一个大量的重构。



基本上,我试图从代码库中删除尽可能多的重复代码,这是一个很多ctrl- V'inheritance';-)然而,粘贴的部分随着时间的推移有所演变。

解决方案

我一直在玩 Atomiq ,它在单个文件中找到重复的内容。到目前为止,它看起来是一个体面的工具。


I'm looking for a diff tool that will allow me to compare just a sub-section of a file with a section of another file, or even of itself. Preferably eclipse based but will take all suggestions.

Yes I know I can copy out the two sections into different files and compare those, but that is very tedious when you are trying to do a large amount of refactoring.

Basically I'm trying to remove as much duplicated code as possible from a code base that is suffering from a great deal of ctrl-V 'inheritance' ;-) However the pasted parts have evolved apart a little over time.

解决方案

I've been playing with Atomiq, which finds duplicates within a single file. So far it looks to be a decent tool.

这篇关于可以比较文件的部分的差异工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆