Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I want to compare two projects in Android studio

Tags:

I have a couple Android Studio projects that are similar, and I want to know exactly where their source files differ. What is an easy way to do that?

like image 659
John Surname Avatar asked Jul 01 '15 21:07

John Surname


People also ask

How can I compare two files in Android?

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.

Can I open two projects in Android Studio?

To open multiple projects simultaneously in Android Studio, go to Settings > Appearance & Behavior > System Settings, in the Project Opening section, choose Open project in new window.


2 Answers

Right click file/directory/project/module > click compare with > give the path to compare

EASY WAY TO FIND PATH : ( considering both projects are open in Android Studio) Switch to project you want to compare > right click file/directory/project/module > copy path > paste it back in select path dialog. BETTER to copy path first.

Verified : Android Studio 1.5.1

like image 147
Vikas Borkar Avatar answered Oct 11 '22 21:10

Vikas Borkar


In Android studio 3.4.2 you can do by right click on

Select Android : app → Compare Directories select proper path for your files and done.

In Android Studio Bumblebee : app → Compare With or Ctrl+D :)

enter image description here

like image 24
Bhavin Patel Avatar answered Oct 11 '22 21:10

Bhavin Patel