IntelliJ IDEA2020-自定义配置和缓存位置以及数据迁移

IntelliJ IDEA2020-自定义配置和缓存位置以及数据迁移_文件拷贝

​AusKa T​​     3 人赞同了该文章

1 数据转移步骤

1.1 system配置位置

C:\Users\xxx\AppData\Roaming\JetBrains

例如:C:\Users\Administrator\AppData\Roaming\JetBrains

IntelliJ IDEA2020-自定义配置和缓存位置以及数据迁移_重启_02

1.2 config配置位置

C:\Users\用户名\AppData\Local\JetBrains

例如:C:\Users\Administrator\AppData\Local\JetBrains

IntelliJ IDEA2020-自定义配置和缓存位置以及数据迁移_文件拷贝_03

1.3 迁移数据

1.3.1新建迁移目录

xxx\.IntelliJIdea
例如:D:/.IntelliJIdea


目录下新建config和system文件夹

IntelliJ IDEA2020-自定义配置和缓存位置以及数据迁移_文件拷贝_04

1.3.2 迁移config

以迁移IntelliJIdea2020.3版本为例,将C:\Users\Administrator\AppData\Roaming\JetBrains\IntelliJIdea2020.3的所有文件拷贝到D:/.IntelliJIdea/config文件夹下面

1.3.3 迁移 system

以迁移IntelliJIdea2020.3版本为例,将C:\Users\Administrator\AppData\Local\JetBrains\IntelliJIdea2020.3的所有文件拷贝到D:/.IntelliJIdea/system文件夹下面

2 修改配置文件

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.IntelliJIdea/config
idea.config.path=D:/.IntelliJIdea/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.IntelliJIdea/system
idea.system.path=D:/.IntelliJIdea/.IntelliJIdea/system


3 重启IDEA

重启IDEA

编辑于 2021-01-21 17:15

为人:谦逊、激情、博学、审问、慎思、明辨、 笃行

学问:纸上得来终觉浅,绝知此事要躬行

为事:工欲善其事,必先利其器。

态度:道阻且长,行则将至;行而不辍,未来可期

转载请标注出处!