Android的工作室:默认项目目录 [英] Android Studio: Default project directory

查看:203
本文介绍了Android的工作室:默认项目目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我创建 Android的Studio中的一个新的项目就是了把它放在一个通用的默认文件夹,在类似位置的东西(依赖于操作系统 - Ubuntu的位置):

Whenever I create a new project in Android Studio it wants to put it in a generic default folder at a location something similar to (dependent on OS - Ubuntu here):

/home/USER/AndroidStudioProjects/

我想这个目录切换到另一个位置。除了在创作每一个项目中选择这个新的位置,有一个设置(也找不到)或 path变量(找不到任何文档),可以设置此目录(比如 / home / user中/项目/ AndroidStudio / )作为默认?

I want to change this directory to another location. Besides selecting this new location on the creation of every project, is there a setting (couldn't find) or path variable (couldn't find any documentation) that can set this directory (say /home/USER/Projects/AndroidStudio/) as the default?

也有类似改变在Eclipse工作区是我所期待的。

Something similar to changing the workspace in Eclipse is what I am looking for.

推荐答案

在某些时候,我也想这样做,但在Android Studio不工作得非常像Eclipse一样。

At some point I too tried to do this, but the Android Studio doesn’t work quite like Eclipse does.

所以,很简单:如果你创建了一个项目,说 / home / user中/项目/ AndroidStudio /所有MyApplication 从那里所有新项目将默认为 / home / user中/项目/ AndroidStudio

It's simpler: if you create a project at, say /home/USER/Projects/AndroidStudio/MyApplication from there on all new projects will default to /home/USER/Projects/AndroidStudio.

您也可以编辑〜/ .AndroidStudio preVIEW /配置/选项/ ide.general.xml (在Linux中),并更改读取行<选项名称=lastProjectLocation值=$ USER_HOME $ / AndroidStudioProjects/> <选项名称=lastProjectLocation值=$ USER_HOME $ /项目/ AndroidStudio/> ,但要注意,一旦你创建一个项目在其他地方,这将改变那个地方,所有新项目将默认为它

You can also edit ~/.AndroidStudioPreview/config/options/ide.general.xml (in linux) and change the line that reads <option name="lastProjectLocation" value="$USER_HOME$/AndroidStudioProjects" /> to <option name="lastProjectLocation" value="$USER_HOME$/Projects/AndroidStudio" />, but be aware that as soon as you create a project anywhere else this will change to that place and all new projects will default to it.

希望这会有所帮助,但事实是真的没有多给它的其他比我在这里解释。

Hope this helps, but the truth is there really isn't much more to it other than what I explained here.

让我知道如果你需要任何东西。

Let me know if you need anything else.

这篇关于Android的工作室:默认项目目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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