Winmerge : how to ignore differences in lines with a special ending tag

标签 winmerge

如果其中一个文件有一行以//ignore 结尾,我想忽略行的差异
这可能吗?行过滤器的正则表达式将如何编写?

试过了
.*//忽略$
但这不起作用

最佳答案

当您从“选择文件或文件夹”对话框启动文件比较时,选择左文件和右文件后,单击“过滤器”字段旁边的“选择”。

在 Filters 对话框中,单击 Linefilters 选项卡,创建以下行过滤器(添加)

^//忽略

启用要使用的行过滤器并运行比较。

玩得开心!

关于Winmerge : how to ignore differences in lines with a special ending tag,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1200682/

相关文章:

file - Winmerge-比较2个文件时不显示相同线条的方法?

visual-studio - 如何使用 TFS 检测文件修改?

git difftool 突然停止工作/如何排除故障?

svn - 用于输入文本标记的合并友好格式是什么

git - 在 Git 中使用 Winmerge 来归档差异

windows - Git diff 在子模块中不起作用

WinMerge : how to ignore specific words in a comparison?

svn - 如何使用 WinMerge 区分自定义文件列表

visual-studio-2010 - 我可以在 Visual Studio 中使用 WinMerge 作为我的合并/差异工具吗?