超越比较忽略所有文件中不重要的差异 [英] Beyond Compare Ignore Unimportant Differences in all files

查看:104
本文介绍了超越比较忽略所有文件中不重要的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Beyond Compare 3.3.4.

I am using Beyond Compare 3.3.4.

我想比较大量文件,而忽略不重要的差异.

I want to compare a large number of files and ignore unimportant differences.

Session -> Session Settings -> Comparison tab中,需要打开文件"部分具有比较内容-基于规则的比较".当我分别打开每个文件时,这就是我想要的. 快速测试"部分没有此选项.如何将基于规则的比较应用于快速测试"?

In Session -> Session Settings -> Comparison tab, the "Requires opening files" section has a "Compare contents - Rules-based comparison". This does what I want when I open each file individually. The "quick test" section doesn't have this option. How do I apply rules-based comparisons to my "quick test"?

我与原始海报此处相同.给出的答案是您可以通过转到会话"菜单并更改比较标准以使用基于规则的内容来更改此设置".问题是,基于规则的比较"位于需要打开文件"部分下,因此不起作用.我该如何解决?

I am having the same problem as the original poster here. The answer given was "You can change this by going to the Session menu and changing your Comparison Criteria to use Rules-based content". Problem is, the "Rules-based comparison" is under the "Requires opening files" section, so this doesn't work. How do I fix this?

推荐答案

此答案描述了Windows 32位版3.3.4(和3.3.8)的行为,它似乎会自动报告文件夹结果,就像我要只要我的会话设置正确,就可以打开每个文件.

This answer describes the behavior of 3.3.4 (and 3.3.8) for Windows 32-bit, which seems to automatically report folder results as if I'd opened each file, as long as I have my session settings correct.

要执行忽略不重要差异的比较,必须比较文件内容. BC3无法知道行尾是否是唯一的区别(例如),除非它扫描行尾的内容.因此,您必须设置需要打开文件"部分下的比较内容"复选框.这样,文件夹比较会自动扫描所有文件内容,而不必单独打开每个文件.

To perform a comparison that ignores unimportant differences, it is necessary to compare the file contents. BC3 can't know if line endings are the only difference (for example) unless it scans the contents for line endings. Therefore, you must set the "Compare contents" checkbox under the "Requires opening files" section. By doing so, the folder comparison automatically scans all file contents, I don't have to open each one individually.

顾名思义,快速测试"仅基于时间戳和大小之类的目录信息. 之所以快速,是因为它不会打开或读取文件;因此,如果您希望在比较中达到快速度,那么它就不能基于规则.这些概念不兼容.

A "quick test", by definition, is based solely on directory information like timestamp and size. It is quick because it does not open nor read the files; so if quickness is what you desire in a comparison, it cannot be rules-based. The concepts are incompatible.

通过查看中间一栏,您可以查看在文件夹比较窗口中是否对任何文件对都进行了快速"或内容"比较.如果为空,则仅运行了快速测试;否则,请重新运行.如果有图标,则还进行了内容测试.

You can see whether a "quick" or "contents" comparison has been run for any pair of files in a folder-compare window by looking at the middle column. If it is blank, only a quick test has been run; if there is an icon, a contents test has also been run.

当基于规则的比较"仅检测到不重要的差异时,该图标将为黑色的(几乎相等")符号,两条波浪线.如果您启用了"View > Ignore Unimportant Differences",则文件本身将为黑色,并被视为匹配,否则,文件将为红色或灰色,并被视为不匹配.

That icon will be a black ("almost equal") symbol, two wavy lines, when a "Rules-based comparison" has detected only unimportant differences. The files themselves will be black and treated as matching if you have "View > Ignore Unimportant Differences" active, otherwise they'll be red or gray and treated as mismatching.

有关每个可能图标的含义,这是Beyond Compare 3帮助文件中的相关部分:

For the meaning of each possible icon, here is the relevant section from the Beyond Compare 3 help file:

这篇关于超越比较忽略所有文件中不重要的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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