IntelliJ IDEA compare tabs

Viewed 5223

I'm using IDE 10.5 Community edition.

In one project, I have multiple modules. I also have opened multiple tabs in the editor from different modules.

Is there a way to compare the content of two different tabs in the editor, which can be from different modules?

4 Answers

One simple solution is the 'Compare with Clipboard' function (in your contextual menu - right click), which allows you to compare the contents of an editor tab with whatever is in your clipboard. As long as you can copy something, you can compare it against a file...

In 2019, select your file and "compare with editor" (which is your opened tab)

I use this to have a config file loaded in intelliJ (which is changed by the server, not stored in my project) and need to compare it to a baseline (in my project)

Related