Search code examples
intellij-idea

IntelliJ IDEA: Compare Files: How To Change Sides?


I use IntelliJ IDEA for comparing two files in the side by side view.

How can I change the sides, so that the file visible on the left side appears on the right side and vice versa?


Solution

  • One workaround is to select which file goes on which side when you start the comparison.

    1. Open the right-hand file in the editor window.
    2. Select the left-hand file from the list (e.g. under "Project Files").
    3. Right-click on the left-hand file and select "Compare File with Editor".