在idea2018不论是安装版还是解压缩版找到bin目录下的idea.properties文件
idea.config.path=${user.home}/.IntelliJIdea/config
idea.system.path=${user.home}/.IntelliJIdea/system
idea.plugins.path=${idea.config.path}/plugins
idea.log.path=${idea.system.path}/log
找到这四个设置内容设置为你需要存放的路径即可,记得复制磁盘路径时将
”\“修改为”/“