Diff tool that can compare sub-sections of files(可以比较文件的子部分的 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 工具
基础教程推荐
- 设置 bean 时出现 Nullpointerexception 2022-01-01
- Java Keytool 导入证书后出错,"keytool error: java.io.FileNotFoundException &拒绝访问" 2022-01-01
- “未找到匹配项"使用 matcher 的 group 方法时 2022-01-01
- 在 Libgdx 中处理屏幕的正确方法 2022-01-01
- 如何使用 Java 创建 X509 证书? 2022-01-01
- FirebaseListAdapter 不推送聊天应用程序的单个项目 - Firebase-Ui 3.1 2022-01-01
- 降序排序:Java Map 2022-01-01
- Java:带有char数组的println给出乱码 2022-01-01
- 减少 JVM 暂停时间 >1 秒使用 UseConcMarkSweepGC 2022-01-01
- 无法使用修饰符“public final"访问 java.util.Ha 2022-01-01