O'Reilly logo

IntelliJ IDEA Essentials by Jarosław Krochmalski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Comparing files and folders

When you develop a project, often there is a need to compare the contents of the files or the structures of the folders. Usually, you would have to use an external tool for that, and there are plenty of such tools in the market. IntelliJ IDEA provides its own file diff and folder synchronization features. Let's start with comparing files.

Comparing files

To compare two files, select them keeping the Ctrl key pressed in the project structure tree and choose Compare Two Files from the context menu; or press Ctrl + D (PC) or cmd + D (Mac). The differences viewer will open with the differences highlighted:

Comparing files

You can move between ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required