Intellij IDEA: Compare Files: How to Change Sides?

I use Intellij IDEA to compare two files in a 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?

+5
source share
2 answers

One way to solve the problem is to choose which file starts from which side when starting the comparison.

  • Open the right file in the editor window.
  • Select the left file from the list (for example, in the "Project Files" section).
  • Right-click on the left file and select Compare File With Editor.
+4
source

There is an open feature request, feel free to vote:

  • IDEA-48213 Compare two files, the action does not allow you to choose which file will be left and which one will be right (swap diff)
+4
source

Source: https://habr.com/ru/post/1265158/


All Articles