Beyond Compare sets the operation method to ignore line number differences

PHPz
Release: 2024-04-22 17:20:24
forward
1248 people have browsed it

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!

source:zol.com.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template