转:idea点用C盘空间解决办法

原文:http://my.oschina.net/ulyn/blog/125546 

 

在安装完IntelliJ IDEA之后,默认会在windows的系统盘用户文件夹中创建配置等文件。在我只有32G的SSD盘中,怎么能让它如此,不爽呀。。占用到现在都快1G了。好吧。今天把她解决了。

    找到安装路径下有个属性文件idea.properties(比如:D:\IntelliJ IDEA\bin),打开此文件,前面三行就说了:

# Use ${idea.home} macro to specify location relative to IDE installation home # Also 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. I.e. c:/idea/system

    接下来四行中看看应该就知道什么意思了,比如:idea.config.path=${user.home}/.IntelliJIdea12/config

    修改成你要设置的路径就好了,修改后最终这几行如下:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
idea.config.path=D: /IntelliJ IDEA/.IntelliJIdea12 /config
 
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes
#---------------------------------------------------------------------
idea.system.path=D: /IntelliJ IDEA/.IntelliJIdea12 /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=D: /IntelliJ IDEA/.IntelliJIdea12 /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=D: /IntelliJ IDEA/.IntelliJIdea12 /system/log

注意呀:纠结了好好久,怎么改了没效果,后面发现

?
1
#idea.config.path=D:/IntelliJ IDEA/.IntelliJIdea12/config

这多了个#号啊。要把这个#号去掉打开这行配置才行

    这下子可以把C盘占用的删除了!!!不过注意把以前配置好的转移备份

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值