6

Linux 下安装 IntelliJ IDEA

 2 years ago
source link: https://ljason.cn/Linux-SetUp-IntelliJ-IDEA/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Linux 下安装 IntelliJ IDEA

发表于 2016-12-21

更新于 2020-03-08

分类于

翻译

  1. 将下载的 IntelliJ IDEA 压缩文件解压到你希望安装的位置,下面会把这个位置称为 {installation home}

  2. 在命令行中 cd 到 {installation home}/bin,执行以下命令来启动程序:

./idea.sh

  这将在 ~/.IntelliJIdeaXXXX.X 文件夹中初始化配置文件。

  3. [可选] 将 {installation home}/bin 添加到 PATH 环境变量,以便可以从任意目录启动 IntelliJ IDEA。

  4. [可选] 要调整 JVN 堆大小的值,请创建 ~/.IntelliJIdeaXXXX.X/idea.vmoptions (如果使用 64位 JDK,则创建 idea64.vmoptions),并且设置 -Xms-Xmx 参数。具体可以参考 {installation home}/bin 目录中的 vmoptions 文件作为模板。

[可选] 更改 configsystem 目录的位置

  默认情况下,IntelliJ IDEA 会将所有设置存储到 ~/.IntelliJIdeaXXXX.X/config 目录下,并使用 ~/.IntelliJIdeaXXXX.X/system 作为数据缓存。如果要更改这些设置:

  1. 在命令行 cd 到 ~/.IntelliJIdeaXXXX.X/

  2. 创建 idea.properties 文件并在编辑器中打开。根据需要设置 idea.system.path 或者 idea.config.path 的变量,例如:

idea.system.path=~/custom/system  
idea.config.path=~/custom/config

  3. 请注意,建议将数据缓存(system 目录)存储在至少有 1GB 可用空间的磁盘上。

如果你喜欢我的博客,那就请我吃冰淇淋吧(づ ̄3 ̄)づ╭❤~

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK