VCS-specific integrations enable you to compare your local copy of a file with the versions stored in the repository.PyCharm suggests several options:
- Compare your local copy with the repository version, to which you have last synchronized
- If somebody else has committed changes since your last update, compare your local copy with newest version
- Compare your local version with any repository version of a file.
For some VCS, it is possible to compare with a branch version. The differences display in the Differences viewer.
- Select a file in the Project tool window, or open it in the editor.
- Do one of the following:
- On the main menu, or on the context menu of a file, choose .
- Select a file in the Local Changes tab of the Version Control tool window, and choose Show Diff on the context menu.
- Select a file, or open it in the editor.
- On the main menu, or on the context menu of a file, choose .
- Select a file, or open it in the editor.
- On the main menu, or on the context menu of a file, choose .
- In the File Revision pop-up window, click the version to compare:
Alternatively, use the History view of a file. Select the desired version,
and choose Compare with Local on its context menu, or
click
on the toolbar.
You can explore changes to binary files same way, as you do it for textual files. For example, use this feature to watch the changes made to images.