码迷,mamicode.com
首页 > 其他好文 > 详细

IntelliJ IDEA2017 修改缓存文件的路径

时间:2017-05-08 11:17:59      阅读:3828      评论:0      收藏:0      [点我收藏+]

标签:属性   更改   缓存   class   config   system   大小   修改   jid   

IDEA的缓存文件夹.IntelliJIdea2017.1,存放着IDEA的破解密码,各个项目的缓存,默认是在C盘的用户目录下,目前有1.5G大小。现在想要把它从C盘移出。

技术分享
在IDEA的安装路径下中,进入bin目录后找到属性文件:idea.properties 用记事本打开,找到如下代码段:

 1 #---------------------------------------------------------------------
 2 # Uncomment this option if you want to customize path to IDE config folder. Make sure you‘re using forward slashes.
 3 #---------------------------------------------------------------------
 4 # idea.config.path=${user.home}/.IntelliJIdea/config
 5 
 6 #---------------------------------------------------------------------
 7 # Uncomment this option if you want to customize path to IDE system folder. Make sure you‘re using forward slashes.
 8 #---------------------------------------------------------------------
 9 # idea.system.path=${user.home}/.IntelliJIdea/system
10 
11 #---------------------------------------------------------------------
12 # Uncomment this option if you want to customize path to user installed plugins folder. Make sure you‘re using forward slashes.
13 #---------------------------------------------------------------------
14 # idea.plugins.path=${idea.config.path}/plugins

 
需要注意,在IDEA2017中,默认这些配置是注释掉的,我在这可吃了大亏,没想到配置没有生效的原因是如此简单。

更改配置文件如下:

 1 #---------------------------------------------------------------------
 2 # Uncomment this option if you want to customize path to IDE config folder. Make sure you‘re using forward slashes.
 3 #---------------------------------------------------------------------
 4 idea.config.path=E:/jiashubing/.IntelliJIdea/config
 5 
 6 #---------------------------------------------------------------------
 7 # Uncomment this option if you want to customize path to IDE system folder. Make sure you‘re using forward slashes.
 8 #---------------------------------------------------------------------
 9 idea.system.path=E:/jiashubing/.IntelliJIdea/system
10 
11 #---------------------------------------------------------------------
12 # Uncomment this option if you want to customize path to user installed plugins folder. Make sure you‘re using forward slashes.
13 #---------------------------------------------------------------------
14 idea.plugins.path=${idea.config.path}/plugins

 
更改了以后重启IDEA,会弹出如下界面Complete Installation,选择Previous version

技术分享

 

此时,在目录下生成了一个.IntelliJIdea文件

技术分享


此时把.IntelliJIdea2017.1删除了也可以,原来的项目也都能找得到


  PS:初始缓存文件夹.IntelliJIdea2017.1的来历,之前安装的是IDEA2015,那时的缓存文件是.IntelliJIdea,后来将IDEA2015升级成了IDE2017,在同一个目录下生成了这个.IntelliJIdea2017.1文件夹。可能是IDEA内部的某种设置,如果文件中已经存在了.IntelliJIdea文件,就要在后面增加版本号后缀。

 

IntelliJ IDEA2017 修改缓存文件的路径

标签:属性   更改   缓存   class   config   system   大小   修改   jid   

原文地址:http://www.cnblogs.com/acm-bingzi/p/ideaCachePath.html

(1)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!