WinMerge:如何忽略注释
我正在使用 WinMerge 比较文件夹(包括子文件夹)中的 java 文件。 我想在比较完成后忽略评论,但我不知道该怎么做。
在文件级别,我在选项中找到了一个开关,因此如果我比较两个文件,注释将被忽略。但是,如果我比较这两个文件所在的文件夹,WinMerge 会告诉我这些文件是不同的。然后,当我单击文件时,WinMerge 发现唯一的区别是注释,它告诉我这些文件是相同的。
有什么想法吗?
I'm using WinMerge to compare java files in folders (including subfolders).
I would like to ignore comments when the comparison is done, but I don't know how to do it.
At the file level I've found a switch in the option, so if I compare two files the comments are ignored. However if I compare the folders where those two files live WinMerge tells me that the files are different. Then when I click on the files WinMerge finds out that the only differences are comments and it tells me the files are equal.
Any idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用插件 IgnoreCommentsC.dll。该插件会忽略 C、C++、PHP 和 JavaScript 文件中 //... 和 /* ... */ 分隔符内的注释。
您可以将它与 java 文件关联起来。从此处下载。
编辑:
该链接似乎不再提供可下载的插件。文档说在安装时安装插件。您可以在文档中找到有关插件的更多信息(一般信息、可用插件)
You could use a plugin IgnoreCommentsC.dll. The plugin ignores comments within //... and /* ... */ delimiters in C, C++, PHP and JavaScript files.
You could just associate it with java files. Download from here.
EDIT:
It seems that the link doesn't have the plugins downloadable anymore. The documentation says to install plugins at installation time. You can find more information about plugins in the documentation (general info, available plugins)