安装完IntelliJ IDEA之后,默认会在windows的系统盘用户文件夹中创建配置等文件,而且默认保存在C盘,会造成C盘文件越来越多,影响系统运行速率,如何将配置迁移到非系统盘呢,很简单,以E盘为例:
找到安装路径找到安装路径下有个属性文件idea.properties(比如:D:\Program Files\JetBrains\IntelliJ IDEA 14.0.3\bin),打开此文件,前面三行就说了:
# Use ${idea.home} 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).
修改这四行配置,如下:
#---------------------------------------------------------------------重启IntelliJ IDEA,即可!
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.config.path=E:/IntelliJ IDEA/.IntelliJIdea14/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.system.path=E:/IntelliJ IDEA/.IntelliJIdea14/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=E:/IntelliJ IDEA/.IntelliJIdea14/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.log.path=E:/IntelliJ IDEA/.IntelliJIdea14/system/log