How to use compare plugin in notepad++

This post will help you how to compare two files in Notepad++. Whether you want to compare two text files to find the differences between them or you need to compare a programming file with two different versions, you will be able to do it within Notepad++.

How to use compare plugin in notepad++

If there is any new line added, a line is deleted or removed, a line is moved, and a line is changed (like some word or letter is added or removed in a line) in any of the two files added for comparison, you can see those changes.

The differences are highlighted with different colors for added lines, deleted lines, changed lines, etc. You can also see a plus icon with green color and a minus icon with red color for a line added or removed in any of those two files.

Compare two files in Notepad++

Notepad++ doesn’t come with a built-in feature to compare two files, but you can use a free Notepad++ plugin called Compare to make it possible. It shows the differences between the two files side by side on the interface of Notepad++.

Here are the steps to compare two files in Notepad++:

  1. Open Notepad++
  2. Access Plugins Admin option
  3. Search Compare plugin in Plugins Admin page
  4. Install the plugin
  5. Open two files in Notepad++
  6. Access Compare plugin options under Plugins menu
  7. Use the comparison options of the Compare plugin.

At first, launch Notepad++ using its desktop shortcut, Windows Search box, or Start menu.

Click on the Plugins menu and then select the Plugins Admin option. Plugins Admin (earlier known as Plugin Manager) page will open.

How to use compare plugin in notepad++

On the Plugins Admin page, search for compare plugin. In the search results, select the Compare plugin, and press the Install button. A confirmation box will open. Press the Yes button in that box.

How to use compare plugin in notepad++

It will close and restart Notepad++ and the Compare plugin will be installed automatically.

Now open two files in Notepad++ that you want to compare. After doing that, click on the Plugins menu and access the Compare plugin. You will see the following options:

  • Set as First to Compare: Using this option, you can make the foreground file the first file (or old file) with which you can compare any other background file (or new file) opened in Notepad++
  • Compare: this option helps to compare the first file with the second file. You have to go to the second file and then use this option for comparison. Any difference such as line added or removed, the line changed, etc., between two files, are highlighted and visible in Notepad++
  • Clear Active Compare
  • Clear All Compares: to close the comparison of all files
  • SVN Diff and Git Diff: to compare the current version of a file with the local Git/SVN database. Helpful for coding files.
  • Ignore Spaces for comparison. For better output, you should uncheck this option
  • Detect Moves option to show/hide icons for added or removed lines
  • Navigation Bar: this option provides a navigation bar on the top right part during the comparison. It is helpful when you are comparing large files. Instead of scrolling manually, you can use a navigation bar to quickly go to a particular part of files that you’re comparing.

How to use compare plugin in notepad++

For each option available for comparison, there is also a hotkey to quickly use a particular option. Use comparison options as per your needs.

Compare Plugin Settings

If you want to adjust color settings for comparison and main settings, then you can access Settings of this Compare plugin and customize them as per your convenience. Use the Settings option available under Compare plugin options. A separate box will open.

Using that box, you can change the default color for an added line, change highlight, moved line, changed line, etc., with any color of your choice. You can also set a highlight transparency level between 0 to 100.

How to use compare plugin in notepad++

Apart from that, the settings box also lets you show/hide the compact navigation bar, set the position of the first file (left or right), wrap-around diffs, automatically go to first difference after full comparison is done, etc.

When Settings are adjusted, press OK to save the changes. That’s all.

This way you can compare two text files, programming files, etc., in Notepad++. Hope this post is helpful.

Do you want to compare 2 files easily and quickly? Here the Notepad compare plugin can help you do that. How to make Notepad++ compare two files? In this post, MiniTool provides you with a complete guide.

Notepad++ is a widely popular free text editor and source editor used on Microsoft Windows. With the Notepad Compare plugin, users can compare two files easily and quickly. For example, if you want to compare a programming file with 2 different versions, this plugin can help you find the differences and mark them with different colors.

How does the Compare plugin work? Notepad++ compare two files through the lines. When you compare two files in Notepad++, you will notice some symbols or icons that have different meanings and are marked with different colors. Here we summarize them as follows:

  • Added (+): This plus icon comes with green color. It shows the lines that exist in the new file and not in the old file.
  • Deleted (-): This icon is marked as red color. It shows the lines that are only present in the old file but do not exist in the new file.
  • Changed (≠): This icon usually comes in different colors (red and yellow). It shows most of the similar lines, but some changes will be highlighted in a different color.
  • Moved: It shows the stream that appears once in another file but in a different location.

Now, you should have an overall understanding of the plugin. How to add the Compare plugin in Notepad++? Let’s keep reading.

Configure the Notepad++ Compare Plugin

The compare plugin does a great job of displaying the differences, but it is not available by default in Notepad++. To use it, you need to download and install it manually via the Plugin Manager. If you don’t have the Plugin Manager installed on your computer, you can click here to download and install it.

Now, let’s see how to add the Notepad Compare plugin.

Step 1. Doble clicks the Notepad++ shortcut on your desktop to enter its main interface. Also, you can search for Notepad++ through the Windows search bar.

Step 2. Click on the Plugins option in the top menu and select Plugins Admin from the context menu.

Step 3. Scroll down the list of plugins, and then tick the checkbox next to Compare and click on Install. Alternatively, you can type compare in the Search box and click on Next to find the plugin quickly.

Step 4. Now, click on Yes when you are prompted to execute this action. Then you will be asked to restart the Notepad++ to install the Compare plugin.

Now, the Notepad Compare plugin should be installed successfully. To compare files in Notepad++, move down to the following part.

Make Notepad++ Compare Two Files

How to make Notepad++ compare files? After you have installed the plugin, you can follow the guide below:

Step 1. To make Notepad++ compare 2 files, you can click on the File option on the top menu and select Open. Then select the 2 files you want to compare.

Tip: Also, you can press Ctrl + O keys or simply drag and drop files to the interface of Notepad++ to open them.

Step 2. Click on the Plugins menu and select Compare from the context menu, and then click on Compare from the sub-menu.

Step 3. Now, it will compare the 2 files instantly and show you the differences between them.

Note: To end the “Notepad++ compare files” process, you can click on Plugins > Compare > Clear Active Compare or Clear All Compares.

If you want to configure more options for the Notepad++ compare two files, you can also click on Plugins > Compare > Settings, and then further configure the Compare settings. For instance, you can change the colors for different lines.

How to compare files in Notepad++? All the detailed steps have been illustrated. Have a try now!