

You can move between changes and perform actions by clicking the icons (e.g. To compare a file with the clipboard contents, open the file in the editor, right-click the editor pane and choose Compare with Clipboard from the context menu:ĭifference Viewer shows all the differences and highlights the source code.

The Differences Viewer shows the contents of the selected file on the left pane, and the contents of the active editor tab on the right pane. If you select a single file in the Project tool window, the context menu command is Compare File with Editor. From the context menu of the selection, choose Compare Two Files (or Ctrl+D). To compare two files, press and hold Ctrl and click two files in the Project tool window. All comparisons are performed in the Differences Viewer. You can compare a) any two files in your project, b) a selected file with the one opened in the editor, or c) a file in the editor with the clipboard contents. This functionality is available in IntelliJ Idea, P圜harm, WebStorm, PhpStorm, RubyMine, and AppCode. In this post we focus on local files and folders comparison. PhpStorm and other IntelliJ Platform IDEs help you explore differences in many situations: differences between files, directories, revisions of the same file under version control or in the local history, database objects, or local and remote files. The good news is that you can quickly and conveniently compare and/or synchronize files/folders with guidance and support from your IDE, without any external tools. If you need to merge changes and synchronise folders, then it can become even more complicated, as well as difficult to perform manually without any support. In this case it’s crucial to work with the most up-to-date copy. Sometimes you have several different versions of files or folders related to your project locally, or you’ve just downloaded it from a remote source.
