可以比较文件的子部分的 Diff 工具

Diff tool that can compare sub-sections of files(可以比较文件的子部分的 Diff 工具)

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

问题描述

我正在寻找一种差异工具,它可以让我仅将文件的一个子部分与另一个文件的一个部分进行比较,甚至可以比较它本身.最好基于 Eclipse,但会接受所有建议.

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.

基本上,我试图从遭受大量 ctrl-V '继承' 的代码库中删除尽可能多的重复代码 ;-) 但是随着时间的推移,粘贴的部分已经分开了一点.

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.

推荐答案

我一直在玩 Atomiq,在单个文件中查找重复项.到目前为止,它看起来是一个不错的工具.

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

这篇关于可以比较文件的子部分的 Diff 工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:可以比较文件的子部分的 Diff 工具

基础教程推荐