当我在D:\ 安装完IDEA9.0之后,建立了一个工程,发现C:\Users\Administrator\.IntelliJIdea90 竟然增大到了500+M,并且随着使用在逐渐增大,这样占用系统盘资源是非常让人不爽的,那么如何将其修改到其他路径呢?

方法如下:

找到安装路径下有个属性文件,我的是在 D:\JetBrains\IntelliJ IDEA 9.0\bin 进入bin目录后找到属性文件:idea.properties 用记事本或者Editplus 将其打开,找到如下代码段:

 
  
  1. # path to IDEA config folder. Make sure you're using forward slashes  
  2. idea.config.path=${user.home}/.IntelliJIdea90/config  
  3.  
  4. # path to IDEA system folder. Make sure you're using forward slashes  
  5. idea.system.path=${user.home}/.IntelliJIdea90/system  
  6.  
  7. # path to user installed plugins folder. Make sure you're using forward slashes  
  8. idea.plugins.path=${user.home}/.IntelliJIdea90/config/plugins 

发现其中包含3个路径 idea.config.path和idea.system.path和idea.plugins.path   这个就是设置了文件的存放路径,那么我们将 ${user.home} 替换为我们自定义的路径就好了,替换 如:D:/JetBrains ,注意“/”的方向。我的修改后的如下:

 
  
  1. # path to IDEA config folder. Make sure you're using forward slashes  
  2. idea.config.path=D:/JetBrains/.IntelliJIdea90/config  
  3.  
  4. # path to IDEA system folder. Make sure you're using forward slashes  
  5. idea.system.path=D:/JetBrains/.IntelliJIdea90/system  
  6.  
  7. # path to user installed plugins folder. Make sure you're using forward slashes  
  8. idea.plugins.path=D:/JetBrains/.IntelliJIdea90/config/plugins 

然后你会发现你的D:/JetBrains/ 路径下出现了 .IntelliJIdea90的文件夹,修改成功!以后在使用的时候就不会占用C盘啦,C盘C:\Users\Administrator\.IntelliJIdea90 的文件夹就可以删除了。快去试试吧!