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 (ref
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.
UPDATE: In the new UI, click on Show Diff with Working Tree
Files
and press cmd + d
cmd + shift + ]
and cmd + shift + [
to shift between files.Diff Tip: IntelliJ provides advanced diff features. You can check those on the 3rd image.
This is implemented now. You right-click on the project and select "Git - compare with branch..." and choose master
branch. Done. Diff all files.
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.
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.
This has been changed in the 2020 version update:
You now need to do the following:
Checkout one of the branches you want to compare.
Open the Branches menu.
Select the other branch you want to compare with.
Select "Show Diff with Working Tree".
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.