在Android Studio中更改主目录的默认位置 [英] Change the home directory default location in Android Studio

查看:776
本文介绍了在Android Studio中更改主目录的默认位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想出了如何通过创建新项目并选择其他目录来更改默认保存位置/工作区的方法.
以前是C:\ Users \ Name \ AndroidStudioProjects,但现在我将默认的保存位置更改为C:\ Name \ Android \ AndroidStudioProjects

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

但是,在Android Studio中,当我转到文件">打开"时,它会打开到默认目录,该目录为C:\ Users \ Name \. SDK也在这里,所以也许这就是原因.这在Android Studio中称为主目录,但是如何更改此路径?

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?

推荐答案

当我们要打开现有项目或Android Studio中的任何内容时,将弹出此窗口.窗口左上方的四个用于路径变量的按钮用于帮助导航到最常用的目录,例如主目录桌面目录项目目录模块目录.前两个是从系统变量继承的,后两个是从当前项目设置中检索的(这就是为什么当未打开任何项目时它们都处于非活动状态)的原因.

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).

Jason所需要的只是一个项目存储库.我将D:\Workspace\AndroidStudio\用作存储所有项目文件的项目存储库.因此导航到我的项目非常不方便,我必须至少单击5次到我的存储库.

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不允许用户指定存储库目录,即使它支持用户定义的路径变量,我也不知道如何在此窗口中使用它.我想我们必须添加一个按钮来快速导航到repo目录,这对于IDE开发人员来说可能太琐碎了.

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.

最后,我发现了 Recent Files 按钮,该按钮虽然不太完美,但可以在很大程度上帮助我进行导航.如果您遭受像我这样的单击鼠标的痛苦,我建议您改用这种次优解决方案.

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.

这篇关于在Android Studio中更改主目录的默认位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆