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:
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.
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.
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.
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.
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!