我使用Beyond Compare(版本3.1.10)来比较不同版本的Delphi Form Files,但我不想看到有关ExplicitTop、ExplicitLeft、ExplicitHeight 和ExplicitWidth 的差异。
细节:
这些行始终以许多空白字符开头,然后是“ExplicitXXX =”和一个数字。旧版本的 Delphi 没有这些行,因此我想忽略这些行添加到最新版本中的差异,并且我还想忽略数字已更改的差异。
有谁知道该怎么做?
编辑:
重复(或多或少):
如何配置 BeyondCompare 以忽略注释中 SCM 替换的文本?
I use Beyond Compare (version 3.1.10) to compare different versions of Delphi Form Files, but I don't want to see differences concerning ExplicitTop, ExplicitLeft, ExplicitHeight and ExplicitWidth.
Details:
These lines will always begin with a number of whitespace characters, then "ExplicitXXX = " and a number. Older versions of Delphi didn't have these lines, so I want to ignore differences where these lines are added to the newest version, and I also want to ignore differences where the number has changed.
Does anyone know how to do this?
Edit:
Duplicate (more or less) of:
How do I configure BeyondCompare to ignore SCM replaced text in comments?
发布评论
评论(4)
Explicit*
,将文本匹配更改为Explicit(Left|Top|Width|Height) = \d+
并选中匹配字符大小写和正则表达式复选框,然后单击确定,然后单击确定< /strong> 在第二个对话框中再次出现。Explicit*
现在应该出现在原始对话框的语法元素列表中。取消选中它,然后将对话框底部的组合框从仅用于此视图更改为更新会话默认值。Explicit*
, change the Text Matching toExplicit(Left|Top|Width|Height) = \d+
and check the Match character case and Regular expression checkboxes, then click Ok, then click Ok again in the second dialog.Explicit*
should now appear in the original dialog's Grammar Elements list. Uncheck it, then change the combobox at the bottom of the dialog from Use for this view only to Update session defaults.我不使用Beyond Compare,但如果您想让较新版本的Delphi停止添加(IMO无用)
Explicit*
属性,您可以使用Andreas Hausladen的DDevExtensionsI don't use Beyond Compare, but if you want to have newer versions of Delphi stop adding the (IMO useless)
Explicit*
properties, you can use Andreas Hausladen's DDevExtensions就我而言(C#),我想忽略包含我更改的命名空间(因此,使用的)的整行。
(参考演练 - 如果行中存在文本,则忽略整行
。
即 就是这样
在克雷格解决方案的第 5 步中,将文本匹配更改为
(包括引号)
。
In my case (C#), I wanted to ignore the entire line which contained namespaces (and thus, using's) which I changed.
(Referenced Walkthrough - Ignore entire line if text exist in line
ie.
To do that
In step 5. of Craig's solution, change the Text Matching to
(include the quotes)
That's it.
克雷格·彼得森的回答是正确的。
注意但是! “重要性”选项卡并不总是从会话/会话设置中可见。始终,从文件夹列表视图内部,它不会在那里。似乎某些文件类型也没有它,尽管我对此不太清楚。 BC 有很多选项和插件,我打赌有一个解决方法,但对我来说到目前为止我还不错。
http://www.scootersoftware.com/vbulletin/showthread.php?t=8457
Craig Peterson's answer is correct.
N.B. However! The tab 'importance' is not always visible from Session/Session-settings. Always, from inside a Folder list view, it will not be there. It seems there are certain filetypes that do not have it either, though I'm less clear on that. BC has so many options and plugins I bet there is a workaround, but for me I have been ok so far.
http://www.scootersoftware.com/vbulletin/showthread.php?t=8457