JetBrains Rider 2022.2 Help

Compare file and folder versions

JetBrains Rider allows you to examine the differences between two revisions of a file or a folder, or between their 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 Compare files, folders, and text sources.

Compare a modified file with its repository version

  1. Open the Commit tool window .

  2. Locate the required file in a changelist and do one of the following:

    • Select the file and click diff icon on the toolbar or press Ctrl+D

    • Double-click the file

  3. The diff view opens where changes to the file are highlighted:

    Viewing changes from the Commit tool window

    The right pane contains the modified version of the file. You can edit it in the diff view.

    The left pane contains the initial version of the file. It is read-only. You can click Revert (Revert) to undo a change.

Compare the current revision of a file or folder with a revision in the same branch

  1. Select a file or a folder in the Solution Explorer, and choose <your_VCS> | Compare With from the context menu.

  2. Choose a revision you want to compare the current file or folder version with from the dialog that opens.

Compare the current revision of a file or folder with another branch

  1. Select a file or a folder in the Solution Explorer, and choose <your_VCS> | Compare With Branch from the context menu.

  2. Choose the branch you want to compare the current file or folder version with from the dialog that opens.

Last modified: 14 September 2022