在安装IntelliJ IDEA后,会在系统User目录下生成一个文件夹,我安装是12版本,所以产生文件夹名为.IntelliJIdea12,里面有config、system文件夹,一些配置信息和项目调试内容会在这里面,所以这个文件夹会越来越大。可以通过修改软件安装目录的bin目录下的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 user installed plugins folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
 idea.plugins.path=${user.home}/.IntelliJIdea/config/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.log.path=${user.home}/.IntelliJIdea/system/log

修改各路径即可。