This is an easy trick that you can use to merge two files manually in case you don’t have an IDE while coding. I have used it few times to compare Javascript files before checking in the code in repository.
Open both files using NotePad++.

Then go to Plugins> Compare> Compare.
Both files will now show up side by side with differences highlighted.
Now you can easily check and copy the lines needed from one file to another.
Thanks!
When ever i click compare option… it hangs for 1~2 sec and my screen goes black.. My OS is win 7 .. on core i3 with 2 GB RAM.. any solution?
Not sure what the issue is. I also have Windows 7. And anyways your you configuration is not a problem to run NotePad++
Have you tried to compare other files?
I have i7 8GB RAM and comparing 2 files bigger than 20 Mb with Notepad++ will give me BSOD or just shutdown my PC.
The plug-in itself can’t handle the size of files, I love the notepad++ it’s my main text editor , have been using it for few years now so I hope eventually comparing plug-in will get better.
It happens to all my 3 PC’s Win 7 x64
PS. I have UEStudio Latest version + UltraCompare (Genuine License) and it does the job, 2 registry files over 600 MB no problem, but it uses 100% CPU to do that, sluggish editor, I only use for huge files but the day Notepad++ will handle bigger files I will say good bye to everything else best editor out there.
Brilliant. Thanks for doing this post.
Hello,
can you guys let me know if there is a way after using plugin compare in notepad ++ to extract the differences between files compared?
thanks
It does not seem to be the size of the files. It happens to me with files less than 1MB. =(
When I use the compare plugin built into Notepad++ to compare line text between two text files, how do I select & copy just the added lines (highlighted in green with the + sign icon to the left)?
What I’m trying to do is simply select all the line differences in one text file so that I can copy and paste them into a new text file.
I searched everywhere and I figure out how to do this.
Any suggestions on how to accomplish this are most appreciated.
Thanks
I may have a solution to the windows 7 issue.
Try unchecking the “Synchronize Verticle/Horizontal Scrolling” buttons, THEN use compare.
I was having crushing display issues, and this cleared it right up for me.
Hope this help!
I have exact same question as Steve, trying to just select all the “added” lines so that I can post them in a separate file altogether.
I just ran a “Dr. Web” scan. It reported my “Hosts” file as corrupt & asked if I wanted to restore it to the “Default” file. Being the trusting soul that I am, I clicked “Yes”. WinPatrol spotted the change & asked if I accepted it. After a call to TJ the Guru, I found Notepad++ & ran the “Compare” function. Turns out that had I accepted the change, Dr. Web would’ve deleted my ENTIRE “Hosts” file. There’s probably more here than meets my ignorant eye, but this could’ve been ugly… Thanks for the app & good luck to us all!!! World peace, everybody!!!
Works like a charm… Thanks for sharing.
Hey..!!! thanks yar.. you ve saved my time..!!!
This comparison tool is terrible. It doesn’t even let you compare the lines directly, it just tells you where the differences are.
I also have the same problem as mentioned by Steve and Justin. I would love to be able to select all of the added lines but have not been able to find out how to do this.
Great tool thanks!!
much helpful thank yo so much
@Rahul Dev
I had the same problem. Go to Plugins->Compare and uncheck Navigation bar. Now it does not go black and works fine for me. I also checked – ignore spacing.
i can’t see that compare option in plugins tab. i am using v5.9.8. which version has got that option.
@Rahul Dev
same problem here. When I click compare it crashed all windows, i.e. all windows go black but can still be used.
Don’T have the compare option in the latest version
Fantastic plugin, just what i was looking for!
Thanks!
Awesome… wonderful… It will handle more than 2.5 MB file.
Thanks…
@Phil
Go to Plugins menu > Plugin Manager > Show Plugin Manager > check ‘Compare’ from the list of available plugins and click ‘Install’.
Worked a treat for me!
@ChazZ
Thanks for the tip – this has been driving me crazy! Now I can get back to work!
Very cool, thanks!
hello,
Is there any way to copy from comparison results with highlighted text?
The command “Copy text with syntax highlighted” doesn’t work!