1.查看 idea 的安装路径(右键点击 idea 图标,查看路径 )
“C:\Program Files\JetBrains\IntelliJ IDEA 2021.3.1\bin\idea64.exe”
在 bin 目录查看 idea.properties 文件,修改以下四个路径文件
# idea.config.path=${user.home}/.IntelliJIdea/config
idea.config.path=D:\developsoft/idea_home/.IntelliJIdea/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the caches directory.
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.IntelliJIdea/system
idea.system.path=D:\developsoft/idea_home/.IntelliJIdea/system#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the user-installed plugins directory.
#---------------------------------------------------------------------
# idea.plugins.path=${idea.config.path}/plugins
idea.plugins.path=D:\developsoft/idea_home/.IntelliJIdea/config/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the logs directory.
#---------------------------------------------------------------------
# idea.log.path=${idea.system.path}/log
idea.log.path=D:\developsoft/idea_home/.IntelliJIdea/system/log
重新启动 idea 时,选择确认修改;