Beyond Compare - ignore certain text strings?

后端 未结 2 1293
孤街浪徒
孤街浪徒 2021-01-05 04:42

Is there a way to specify to ignore specific text? For example I have web files that are often the same execpt for the difference in file paths - local vs. remote paths. So

2条回答
  •  离开以前
    2021-01-05 05:48

    Using Beyond Compare 3 Pro you can set up a replacement that will ignore changes of one string to a specific other one.

    1. Load the files in the text compare
    2. Selection the Session->Session Settings... command.
    3. Change to the Replacements tab.
    4. Click New...
    5. In the new dialog put http://localhost/mysite.com/ in the Text to find edit and http://www.mysite.com/ in the Replace with edit.
    6. Click Ok.
    7. Change the combobox at the bottom of the dialog from Use for this view only to Use for all files within parent session if you want it to affect everything in the folder compare, or use one of the other options expand or limit the scope. The default option only keeps the settings in effect until you close the text compare.
    8. Click Ok in the original dialog.

    You can also right click on differences and use the Replacement command to automate some of the above steps. It tries to pre-fill in what the replacement should be, but doesn't always get it right.

提交回复
热议问题