注意:配置之前关掉idea界面
第一步:找到idea.properties 文件,具体操作如下:
①桌面快解方式,右键打开文件所在位置
②在当前目录下,找到idea.properties
第二步:更改idea.properties
原有配置为:
#---------------------------------------------------------------------
# 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
#---------------------------------------------------------------------
# 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
更改后为:
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.config.path=D:\IntelliJIdeaCache/.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=D:\IntelliJIdeaCache/.IntelliJIdea/system
注意:将#删掉
第三步:将原有目录下的config和system 目录内容复制到对应新的目录里面
此步操作很关键,主要是为了复制config。避免IDEA 认为这是一个新的安装实例,需要重新激活的操作。
第四步:打开idea,即可。