修改IDEA缓存文件路径

IDEA默认缓存文件是在C盘,如果C盘足够大,可以不管,但最好改一下,所以需要我们手动更改位置。

以PHPStorm为例

第一步,找到IDEA安装位置的bin目录,再找到idea.properties文件,把${user.home}替换为我们需要的路径,比如我的是F:/PhpStorm/cache,修改后的内容是这样的:

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
 idea.config.path=F:/PhpStorm/cache/.PhpStorm/config

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
 idea.system.path=F:/PhpStorm/cache/.PhpStorm/system

第二步,重启IDEA,会弹出一个对话框,直接点OK就行了。

至于想查看一下有没有成功,就在你换的目录下看有没有文件夹.PhpStorm,有就说明修改成功了。

你可能感兴趣的:(修改IDEA缓存文件路径)