有没有一种简单的方法可以将 Intellij 的整个安装放在 U 盘上?

发布于 2024-10-14 14:16:39 字数 172 浏览 4 评论 0原文

我正在考虑从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

半窗疏影 2024-10-21 14:16:39

是的,可以,只需将安装目录复制到闪存驱动器,然后编辑 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 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

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.

挖个坑埋了你 2024-10-21 14:16:39

您还可以做的一件事是使用 ${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

冷血 2024-10-21 14:16:39

除了 CrazyCoder 的答案之外:

如果您希望 IntelliJ / PHPStorm 表现得像便携式应用程序,则需要将 IntelliJ / PHPStorm 的“系统”文件夹复制到 USB 记忆棒。

要获取所需的文件夹,请将 IntelliJ / PHPStorm 安装到您的 HDD 上并至少运行一次。

在 Windows 7 上,路径为(将文件夹复制到 USB 记忆棒):

  • %USERNAME%\.WebIde10\config\ => usb:/IDEA_HOME/config
  • %USERNAME%\.WebIde10\system\ => usb:/IDEA_HOME/user-plugins

请注意,首次启动 IntelliJ / PHPStorm 时不会创建 user-plugins,因此请在 USB 记忆棒上创建它。

按照 CrazyCoder 的指示编辑 idea.properties 并更改所有 3 个值:

  • idea.config.path
  • idea.plugins.path
  • idea.system.path

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

  • %USERNAME%\.WebIde10\config\ => usb:/IDEA_HOME/config
  • %USERNAME%\.WebIde10\system\ => usb:/IDEA_HOME/user-plugins

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:

  • idea.config.path
  • idea.plugins.path
  • idea.system.path
停顿的约定 2024-10-21 14:16:39

打开 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

  • change # idea.config.path=${user.home}/.IntelliJIdea/config to idea.config.path=../PortableSetting/config
  • change # idea.system.path=${user.home}/.IntelliJIdea/system to idea.system.path=../PortableSetting/system
  • change # idea.plugins.path=${idea.config.path}/plugins to idea.plugins.path=../PortableSetting/config/plugins
  • change # idea.log.path=${idea.system.path}/log to idea.log.path=../PortableSetting/system/log

make PortableSetting folder in c:\Program Files\JetBrains\IntelliJ IDEA 14.1.3\

copy content of C:\Documents and Settings\User\.IntelliJIdea14\ to c:\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.

把梦留给海 2024-10-21 14:16:39

您可以使用portableapps平台来实现便携式intellij。详细说明在这里。

You can use portableapps platform for portable intellij. Details description is here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文