How to open multiple instances of Android Studio or instances of Same Project but different branch simultaneously on Windows?
Asked Answered
A

2

16

I have been struggling to manage two branches of a Project at the same time. By Manage, I mean, to be able to open the Project(same) twice or more than than.

Suppose, on Windows, I create a new Desktop and open Android Studio in this. I can open Google Chrome and other apps but opening the entire Android Studio simultaneously is not possible.

I don't find any such questions on SO. isn't there a need for that?

I just want to open and edit and code on two branches of the same Project on Windows and it need not to be on a different desktop.

Airiness answered 17/2, 2020 at 10:18 Comment(2)
You could clone the Project again into another folder location on your computer (maybe named "project-branched"), then you can use that folder location for the other branch you want to view/edit at the same time.Respond
Okay. That is what I was doing. I was just wondering if we could open a new Desktop and open Android Studio just like Chrome. Thanks, though.Airiness
P
6

You cant work with same project, but with different branches simultaneously - just because branch - is a changes in sources and when you switching branch, you make changes nf files in project folder. So solution - use different folders or better uses difftools build-in in android studio to compare sources of branches.

Patentee answered 17/2, 2020 at 10:39 Comment(0)
C
1

Sometimes, I find a need to open both branches simultaneously. What I do is I clone the project into another folder and switch it on the desired branch. When Android Studio is currently open with a project, opening another project will prompt: Where would you like to open? Choose "New Window" as opposed to "This Window". Now you have your 2 branches open at the same time.

Don't forget to update/rebase the 2nd folder as necessary.

Cytosine answered 31/1 at 8:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.