Comparing files in Android Studio

If I have two different class/layout files in a project. Is there any way I can compare which lines are different using Android Studio?


Solution 1:

Select them both by selecting one, holding down ctrl (or command for mac) and clicking the second file, right-click, Compare Files.

enter image description hereenter image description here

Solution 2:

Go to file name in project then press control then select Compare File and select another file you wish to compare.

Seperate window will open up showing differences by colour contrast.