IntelliJ IDEA enables you to perform the following types of comparison:

You can configure usage of the differences tool in the Settings dialog ( File | Settings | IDE: General: Diff options).

Use context menus to invoke comparison commands. Refer to the Comparison section of online help for details.