PyCharm 2020.2 Help

External Diff Tools

File | Settings | Tools | Diff & Merge | External Diff Tools for Windows and Linux

PyCharm | Preferences | Tools | Diff & Merge | External Diff Tools for macOS Ctrl+Alt+S the Settings/Preferences icon

If necessary, specify external tools for comparing files and folders, and associated settings.

ItemDescription
Enable external diff toolSelect to use an external tool to compare files or folders.
Path to executableSpecify the path to the executable file of the external diff tool you want to use.
Parameters

Set the diff tool parameters.

Various diff tools have different parameters. You need to specify all the necessary parameters in the proper order:

  • %1: left (local changes)

  • %2: right (server changes)

  • %3: base (the current version without the local changes)

  • %4: output (merge result)

Use by defaultSelect to use the specified external tool for comparing files or folders by default. Otherwise, PyCharm will use the built-in diff tool. To invoke an external tool, click the External tools button on the Differences viewer toolbar.
Enable external merge toolSelect to use an external merge tool.
Path to executableSpecify the path to the executable file of external merge tool you want to use.
ParametersSet the merge tool parameters.

Various merge tools have different parameters. You need to specify all the necessary parameters in the proper order:

  • %1: left (local changes)

  • %2: right (server changes)

  • %3: base (the current version without the local changes)

  • %4: output (merge result)

Trust process exist code Select to silently finish the merge if the exitCode of the external merge tool is set to 0 (successful). Otherwise, you will be prompted to indicate the success of the resolution after the tool has exited.
Last modified: 19 August 2020