Home >Software Tutorial >Computer Software >Beyond Compare sets the operation method to ignore line number differences

Beyond Compare sets the operation method to ignore line number differences

PHPz
PHPzforward
2024-04-22 17:20:241297browse

Troubled by line number differences in Beyond Compare? PHP editor Strawberry is here to help! This article will introduce in detail the setting method of ignoring line number differences in Beyond Compare to help you easily solve this annoying problem. Read on for step-by-step instructions to make your code comparisons smoother.

When comparing the smali code, you will find that the difference thumbnails of many files (see the left side of the picture below) are almost all marked in red, and the file differences seem to be very large. In fact, many of them are just differences in line numbers, which we don’t care about, but these differences will make it difficult to locate the differences we care about. Therefore, you can set a comparison rule to ignore the differences in line numbers. The specific setting method is as follows:

Beyond Compare设置忽略行号差异的操作方法

Click the [Rules] option button in the menu above Beyond Compare to bring up the session settings dialog box. Select the [Important] option, click the [Edit Grammar] button, and create a new grammar in the pop-up text format dialog box.

Beyond Compare设置忽略行号差异的操作方法

Select the grammar option under the text format dialog box, click the plus button below, the grammar project dialog box will pop up, and configure the grammar project as shown in the figure below.

Beyond Compare设置忽略行号差异的操作方法

After configuring the grammar project, click the [OK] button. This will generate a [Line Number] check option in the [Important] tab. Uncheck this option and click OK. Return later.

Beyond Compare设置忽略行号差异的操作方法

Select the [Ignore unimportant differences] option under the [View] menu above Beyond Compare to ignore the difference in line numbers, and the thumbnail on the left will display the actual important code The location of the difference.

Beyond Compare设置忽略行号差异的操作方法

The above is the detailed content of Beyond Compare sets the operation method to ignore line number differences. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:zol.com.cn. If there is any infringement, please contact admin@php.cn delete