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 工具
基础教程推荐
- 在springboot中如何给mybatis加拦截器 2023-04-29
- JPA惰性列表上的流 2022-01-01
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- 控制台应用程序中的 Java 键盘输入解析 2022-01-01
- 将 Windows 证书导入 Java 2022-01-01
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
- 将 double 转换为 Int,向下舍入 2022-01-01
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- Maven:无效的目标版本:10 2022-01-01
