强制IntelliJ使用另一个主目录? [英] Force IntelliJ to use another Home Directory?
问题描述
我已阅读此。 ..它不能回答问题。
I have read this... it does not answer the question.
我想让IntelliJ对我所有的项目文件使用另一个位置。当前,它以c:\users作为默认项目位置。
I would like to have IntelliJ use another location for all of my project files. Currently, it goes to c:\users\ as a default project location.
我想将其更改为c:\git。
I want to change that to c:\git.
我试图将开始于链接属性更改为无效。
I tried to change the "Start in" link properties, to no avail.
我不想强制所有配置(即:.IdeaIC15文件夹)要重定位,我只希望它在单击打开项目时转到c:\git。
I don't want to force all of the configuration (ie: the .IdeaIC15 folder) to be relocated, I just want it to go to c:\git when I click "Open project".
推荐答案
要将项目文件所在的目录更改为 C:\git
:
To change the directory where project files are located to C:\git
:
-
选择帮助->编辑自定义VM选项...
将以下行添加到编辑器中出现的文件的末尾(*):
Add the following line to the end of the file that comes up in the editor (*):
-Duser.home = C:\git
重新启动IntelliJ。
Restart IntelliJ.
(*)编辑器中出现的文件将是 idea64.exe.vmoptions
或 idea.exe.vmoptions
。
(*) The file that comes up in the editor will either be idea64.exe.vmoptions
or idea.exe.vmoptions
.
注释:
- 此wi将在您的 config 目录中更新/创建一个 .vmoptions 文件。它不会修改安装目录中的vmoptions文件。
- 上述步骤不会不更改克隆git存储库时使用的默认目录
。 。这是在版本控制-> Git 窗口中的 File-> New-> Project中的
中使用的目录。您
仍然需要将该目录设置为C:\git
并将克隆到<$ c中一个远程仓库
$ c> C:\git 。完成操作后,IntelliJ会记住该目录,并且
会将其用于后续克隆。
- This will update/create a .vmoptions file in your config directory. It does not modify the vmoptions file in your install directory.
- The above steps do not change the default directory that is used
when cloning git repositories. This is the directory that is used in
the File->New->Project from Version Control->Git window. You
still need to set that directory to
C:\git
and clone one remote repo intoC:\git
. Once you have done that IntelliJ remembers the directory and uses it for subsequent clones.
这篇关于强制IntelliJ使用另一个主目录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!