IntelliJ IDEA 2018.2 Help

Comparing File Versions

IntelliJ IDEA allows you to examine the differences between two revisions of a file, or between its current local copy and the repository version. The differences are displayed in the Differences viewer. For details on how to filter, navigate and apply changes in the Differences Viewer, see Comparing files, folders, and text sources.

Compare a modified file with its repository version

  • Select a file in the Local Changes tab of the Version Control tool window and click icons actions diff svg on the toolbar, or press Ctrl+D.

Compare the current revision of a file with a selected revision in the same branch

  1. Select a file in the Project tool window, and choose <your_VCS> | Compare With from the context menu.
  2. Choose a revision you want to compare the current file version with from the dialog that opens.

Compare the current revision of a file with another branch

  1. Select a file in the Project tool window, and choose <your_VCS> | Compare With Branch from the context menu.
  2. Choose the branch you want to compare the current file version with from the dialog that opens.
Last modified: 4 September 2018

See Also