Using IntelliJ's diff viewer is a very nice way to review code because you can make changes in your local version with all the capabilities of the IntelliJ code editor (refactoring, completion, etc).
Unfortunately I have not worked out how to do the most important thing when you're doing code reviews in IntelliJ, namely: Looking at the diff of all the changed files in the working tree (checked out to the branch you want to merge from) and another branch (the branch you plan to merge into, e.g. "master).
Does anyone know how to do this?
Though Jon Tirsen's answer is correct, you need to go through entire text in order to understand how to do that.
Here's the images of the same in mac.
I am currently working with hello_world and want to compare with master.
Next a window will pop up. Select
Files
and presscmd + d
cmd + shift + ]
andcmd + shift + [
to shift between files.Diff Tip: IntelliJ provides advanced diff features. You can check those on the 3rd image.
Right Click on the class and select the Git option where you will see compare with branch option where you can select the particular branch.
If you just want to compare your currently open file with another branch in a side-by-side fashion, just go to VCS -> Git -> Compare with Branch.
This has now been implemented. In order to compare two branches you do:
This is all described in much greater detail in one of their blog posts.