Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the home directory default location in Android Studio

Tags:

android

path

I figured out how to change the default save location/workspace by creating a new project and picking a different directory.
Before, it was C:\Users\Name\AndroidStudioProjects but now I changed the default save location to C:\Name\Android\AndroidStudioProjects

However, in Android Studio when I go to File > Open it opens to a default directory of C:\Users\Name\ where it used to be. The sdk is here too so maybe that's why. This is known as the Home Directory in Android Studio, but how do I change this path?

like image 305
Jason J Avatar asked Aug 04 '15 21:08

Jason J


1 Answers

enter image description here

When we want to open a existing project or anything in Android Studio, this window pops up. The four buttons for path variables on top left of the window is used to help navigating to most frequently used directories as Home Directory, Desktop Directory, Project Directory and Module Directory. The first two are inherited from system variables and the last two are retrieved from current project settings (that's why they're inactive when no project is opened).

What Jason need as I do either is just a project repository. I use D:\Workspace\AndroidStudio\ as my project repository storing all my project files. So it's rather inconvenient to navigate to my projects, I have to left click at least 5 times to my repository.

Android Studio doesn't allow users to specify a repository directory and even if it supports user-defined path variables, I can't figure out how to use it in this window. I guess we have to add a button to quickly navigate to repo directory and that's probably too trivial for IDE developers.

Finally, I discovered the Recent Files button which can largely help me navigating although not perfectly. I suggest you use this sub-optimal solution instead if you're suffering from mouse-clicking pain like me.

like image 107
Joshz Avatar answered Nov 01 '22 03:11

Joshz