How do I run multiple instances of Android Studio - android-studio

How do I run multiple instances of Android Studio? A second instance is launched if you select "File\New Project", but "File\Open" and "File\Reopen" does not create a second instance.

Your Android Studio was set to open project in the same window. You can change that, so it asks whether to open new window while opening other project.
Do this:
Go to: File -> Settings -> Appearance & Behavior -> System Settings -> Project Opening.
Check [x] "Confirm window to open project in".
Now open the other (2nd) project with File -> Open... etc.
You will now be asked if you want to open a new window or replace what you already have. Select New Window.
Screenshots:
Older versions:
Go to Settings -> General -> Project opening.
Check 'Confirm window to open project in'.
Create or open different project
You will be asked if open a new window.

There was an update in Android studio so the new solution would be:
go to >file
go to >settings
go to >appearance and behavior
go to > system settings
now in system settings check the "confirm to open project in" option

On Mac is:
Android Studio
Preferences
Appearance & Behavior
System Settings -> Project Opening -> Confirm to open project in
When you open other project, you will be asked if you want to open a new window or replace what you already have.

Related

Android Studio icon not showing in taskbar - Windows 11

Recently I upgraded from Windows 10 to Windows 11. But now when I open Android Studio only a blank file icon appears on the taskbar.
Is there any way to retrieve the original Android Studio icon?
I have also checked that the .ico file exists in C:\Program Files\Android\Android Studio\bin\studio.ico
I did this and it showed for me:
From start menu: right-click its icon.
Click More -> Open file location.
Right-lick the shortcut and choose Open file location.
From the opened directory, open the file studio.ico with any app.
And suddenly the taskbar refreshed and it showed.
You can click on Start and search for Android Studio ,then on the right side you will get an option of pin to taskbar, click on it. Now Android Studio icon will appear in Taskbar.
But why this happened?
This usually happens when the location of file has changed or it has been deleted! But why this happens during updating to Windows 11 in some PCs, only Microsoft knows!
This is what's working for me:
From start menu: right-click the icon.
Click More -> Open file location.
Right-lick the shortcut and open Properties.
Change Icon -> OK -> Close.
Do step 3 & 4 again, because the first time didn't change the icon (in my case).

Hide Android Studio file path

How can I hide the file path in android studio (it is captured on the screenshot)? I am talking about this:
app -> src -> main -> java -> com -> son...
Sorry for the stupid question but I didn't manage to find it it preferences and this path is not shown on my old mac with the same version of android studio.
On my Mac, I am able to hide the file path by going to the View menu, then unchecking the checkbox next to "Navigation Bar".

Terminal Missing in Android Studio

I opened Android Studio to find that the Terminal Tab is no longer present along the bottom left. Restoring to the default layout did not return it. I also can't seem to find any reference to it in the View or Window Tabs.
How do I get the to the Terminal tab in Android Studio?
Update:
Terminal is not present under View -> Tool Windows, but the Terminal Plugin is installed and enabled.
File > Settings > Plugins' - Search for "terminal"
Untick the check box -> Press Apply
Tick it again -> Press Apply -> Press OK
Restart Studio
Try the shortcut alt+F12. Or check the information under the heading
Running embedded local terminal
On the following link:jetbrains help
Toggling Tools-> Android-> Enable ADB Integration Off/On then restarting the IDE returned my Terminal Tab.

How do I open two or more projects at the same time in Android Studio?

In Android Studio, I want to open another project, so I click File -> Open, but the original project has been closed.
What should I do to open the two projects at the same time?
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.
Umh,I have solved my question.
First,I try to click the File->Find Action and search 'open new project'.Then I find a result and enter the settings window:Project opening.(So sad I have no reputation to post a picture)
Select the first check box.

How to disable automatic check out from Visual Studio 2012?

Whenever I open any solution in VS2012 from local path (which is mapped in TFS), the files are automatically checking out. I want to disable this feature.
I tried to disconnect from TFS and to work on it, But it is closing the solution. Plesase help me out in achieving this. I didn't get this problem before when I was using VS2010
You need to unbind your project(s) from TFS source control.
Select the project or solution from the Solution Explorer
From the main menu select File->Source Control->Advanced->Change Source Control...
Select one or all projects and press the "Unbind" button on the top of the dialog
select ok to the warning popup
You can later bind the projects again, personally I don't do this so I can't say how well it works. I found some more info here
Here are the visual steps:
This brings up the dialog to select projects to bind/unbind.
I had to select one at a time.
Select "Unbind" for each project
Here's what it should look like when unbound.
You can later come back and bind the projects again and TFS will try and reconcile your changes.
Try rather change Checked-in items (Saving, Editing) to 'Prompt for check out'
Tools -> Options -> Source Control -> Enviroment -> Checked-in items
Disable the following option. It should solve your problem.
Tools -> Options -> Source Control -> Enviroment -> Get everything when a solution or project is opened

Resources