IntelliJIdea 修改默认缓存的位置
IntelliJIdea 默认缓存保存在C盘中,随着打开项目的增加,缓存文件夹(.intelliJidea)会越来越大,影响c盘速率。这是我们可以通过自定义缓存缓存文件夹的位置来解决这个问题,需要注意的是 缓存位置更换以后,如果不把原来缓存文件内存copy过去,那么久相当于重置了idea,之前所有的配置都将失效,需要重新配置。
缓存配置文件路径:IntelliJ IDEA 安装路径下\bin\idea.properties
# Use ${idea.home.path} macro to specify location relative to IDE installation home.
# Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value.
# Note for Windows users: please make sure you're using forward slashes (e.g. c:/idea/system).
#设置根目录 这里根据第一行提供的名称配置,idea不同版本可能不一样,比如idea14版本应该是#idea.home没有path
#下边1 2 3 4就是用来自定义idea各种缓存配置的路径的
idea.home.path = D:/opt/tmp/.IntelliJIdea14
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
#打开confi的配置 1
idea.config.path=${user.home}/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
#打开system的配置 2
idea.system.path=${user.home}/system
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
#打开plugins的配置 3
idea.plugins.path=${idea.config.path}/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
#打开log的配置 4
idea.log.path=${idea.system.path}/log