有没有一种简单的方法可以将我的整个 Intellij 安装放在 U 盘上? [英] Is there an easy way to put my entire installation of Intellij on a USB stick?
问题描述
我正在考虑从 Eclipse 切换到 Intellij.我喜欢 Eclipse 的一件事是整个安装只是一个文件夹,如果需要,我可以将它放在 U 盘上并复制到另一台计算机.我的所有插件、设置和其他所有东西都随附,而我所要做的只是复制一个文件夹.
I'm considering switching from Eclipse to Intellij. One thing I like about Eclipse is that the whole installation is just a folder, and I can put that on a USB stick and copy it to another computer if I want. All of my plugins, settings, and everything else come with me and all I have to do is simply copy a folder.
有什么办法可以用 Intellij 做到这一点吗?
Is there any way I could do this with Intellij?
推荐答案
可以,只要将安装目录复制到 U 盘,然后编辑 IDEA_HOMEinidea.properties
文件,将 idea.config.path
和 idea.plugins.path
的值更改为相对位置,例如:../config
和 ../user-plugins
(位置相对于 IDEA bin 目录).
Yes, it's possible, just copy the installation directory to the flash drive, then edit IDEA_HOMEinidea.properties
file, change the values of idea.config.path
and idea.plugins.path
to the relative location, like: ../config
and ../user-plugins
(locations are relative to IDEA bin directory).
现在复制您的原始设置和第三方插件(如果有):
Now copy your original settings and third-party plug-ins (if any):
${user.home}/.IntelliJIdea10/config
=>usb:/IDEA_HOME/config
${user.home}/.IntelliJIdea10/config/plugins
=>usb:/IDEA_HOME/user-plugins
${user.home}/.IntelliJIdea10/config
=>usb:/IDEA_HOME/config
${user.home}/.IntelliJIdea10/config/plugins
=>usb:/IDEA_HOME/user-plugins
注意不建议更改idea.system.path
变量,使其保留在快速本地驱动器上,否则会影响IDEA性能并占用大量 USB 驱动器空间.
Note that it's not recommended to change idea.system.path
variable, so that it remains on the fast local drive, otherwise it could affect IDEA performance and occupy a lot of USB drive space.
这篇关于有没有一种简单的方法可以将我的整个 Intellij 安装放在 U 盘上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!