有没有一种简单的方法可以将 Intellij 的整个安装放在 U 盘上?
我正在考虑从 Eclipse 切换到 Intellij。我喜欢 Eclipse 的一点是,整个安装只是一个文件夹,如果需要,我可以将其放在 USB 记忆棒上,然后将其复制到另一台计算机。我所有的插件、设置和其他一切都随身携带,我所要做的就是简单地复制一个文件夹。
有什么办法可以用 Intellij 做到这一点吗?
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.
Is there any way I could do this with Intellij?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
是的,可以,只需将安装目录复制到闪存驱动器,然后编辑
IDEA_HOME\bin\idea.properties
文件,更改idea.config.path
的值和idea.plugins.path
到相对位置,例如:../config
和../user-plugins
(位置相对于 IDEA bin 目录)。现在复制您的原始设置和第三方插件(如果有):
${user.home}/.IntelliJIdea10/config
=>usb:/IDEA_HOME/config
${user.home}/.IntelliJIdea10/config/plugins
=>usb:/IDEA_HOME/user-plugins
请注意,不建议更改
idea.system.path
变量,以便它保持在快速状态本地驱动器,否则可能会影响IDEA性能并占用大量U盘空间。Yes, it's possible, just copy the installation directory to the flash drive, then edit
IDEA_HOME\bin\idea.properties
file, change the values ofidea.config.path
andidea.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
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.您还可以做的一件事是使用 ${idea.home} 路径变量。我在一篇文章中描述了如何创建包含 JDK 版本的 IntelliJ IDEA 的可移植版本。
https://leolabs.org/blog/making-intellij-portable/
我希望它可以帮助您,因为这是我的第一篇英文文章;)
问候
利奥实验室
One thing you could also do is to use the ${idea.home} path variable. I described in an article how you can create a portable version of IntelliJ IDEA including a version of the JDK.
https://leolabs.org/blog/making-intellij-portable/
I hope it can help you, as this is my first article in English ;)
Regards
leolabs
除了 CrazyCoder 的答案之外:
如果您希望 IntelliJ / PHPStorm 表现得像便携式应用程序,则需要将 IntelliJ / PHPStorm 的“系统”文件夹复制到 USB 记忆棒。
要获取所需的文件夹,请将 IntelliJ / PHPStorm 安装到您的 HDD 上并至少运行一次。
在 Windows 7 上,路径为(将文件夹复制到 USB 记忆棒):
请注意,首次启动 IntelliJ / PHPStorm 时不会创建 user-plugins,因此请在 USB 记忆棒上创建它。
按照 CrazyCoder 的指示编辑 idea.properties 并更改所有 3 个值:
In addition to the answer of CrazyCoder:
To copy the "system" folder of IntelliJ / PHPStorm to the usb memory stick is required if you want that IntelliJ / PHPStorm behave like a portable app.
To get the desired folders install IntelliJ / PHPStorm to your HDD and run it at least one time.
On Windows 7 the path is (copy the folders to your usb memory stick):
Note that user-plugins is not created at first start of IntelliJ / PHPStorm, so create it on your usb memory stick.
Edit the idea.properties as CrazyCoder told you and change all 3 values:
打开 c:\Program Files\JetBrains\IntelliJ IDEA 14.1.3\bin\idea.properties
# idea.config.path=${user.home}/.IntelliJIdea/config< /code> 到
idea.config.path=../PortableSetting/config
# idea.system.path=${user.home}/.IntelliJIdea/system
更改为idea.system.path=../PortableSetting/system
# idea.plugins.path=${idea.config.path}/plugins
更改为idea。 plugins.path=../PortableSetting/config/plugins
# idea.log.path=${idea.system.path}/log
更改为idea.log.path =../PortableSetting/system/log
将
c:\Program Files\JetBrains\IntelliJ IDEA 14.1.3\
中的PortableSetting
文件夹复制
的内容>C:\Documents and Settings\User\.IntelliJIdea14\
到c:\Program Files\JetBrains\IntelliJ IDEA 14.1.3\PortableSetting\
复制
c:\Program Files \JetBrains\IntelliJ IDEA 14.1.3
到 USB 并享受!我为 Windows XP 默认目录写了这个答案。
有关默认目录的更多信息,请参阅 此处。
我阅读了其他人的答案并做出了一步一步的答案。
open
c:\Program Files\JetBrains\IntelliJ IDEA 14.1.3\bin\idea.properties
# idea.config.path=${user.home}/.IntelliJIdea/config
toidea.config.path=../PortableSetting/config
# idea.system.path=${user.home}/.IntelliJIdea/system
toidea.system.path=../PortableSetting/system
# idea.plugins.path=${idea.config.path}/plugins
toidea.plugins.path=../PortableSetting/config/plugins
# idea.log.path=${idea.system.path}/log
toidea.log.path=../PortableSetting/system/log
make
PortableSetting
folder inc:\Program Files\JetBrains\IntelliJ IDEA 14.1.3\
copy content of
C:\Documents and Settings\User\.IntelliJIdea14\
toc:\Program Files\JetBrains\IntelliJ IDEA 14.1.3\PortableSetting\
copy
c:\Program Files\JetBrains\IntelliJ IDEA 14.1.3
to USB and enjoy!I wrote this answer for windows XP default directory.
for more information about default directory look at here.
I read other people answers and made an step by step answer.
您可以使用portableapps平台来实现便携式intellij。详细说明在这里。
You can use portableapps platform for portable intellij. Details description is here.