美文网首页
修改IDEA缓存文件路径

修改IDEA缓存文件路径

作者: 码农工号9527 | 来源:发表于2022-06-23 17:16 被阅读0次

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缓存文件路径

      本文链接:https://www.haomeiwen.com/subject/vglmvrtx.html