修改IDEA的緩存目錄

Intellij IDEA在第一次啓動時,會在${user.home}目錄下創建以.IntelliJIdea開頭的文件夾,用來存放IDEA的配置信息、插件和緩存信息。緩存

隨着工具使用時間越多,這個文件夾會愈來愈大。若是用戶目錄和系統盤在一個分區,那系統盤分區可用空間就會變小,C盤盤符一直是告警狀態,真心受不了,並且系統重裝時,這個目錄還會被刪除。ide

因而咱們須要將此目錄修改到其餘分區,修改很簡單,以下:工具

在IDEA安裝目錄的bin文件夾中找到idea.properties文件,咱們須要修改裏面的幾項內容this

下面是修改的結果,把${idea.xxx.path}所有改爲本身的目錄,改完以後重啓,IDEA會提示你導入以前的配置,這時候須要你選擇${user.home}.IntelliJIdea.config目錄。。。另外要把插件目錄也複製過來,不然以前下的插件所有都沒有了idea

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

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.system.path=F:/data/JetBrains/idea/.IntelliJIdea/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=F:/data/JetBrains/idea/pluginsio

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
idea.log.path=F:/data/JetBrains/idea/log配置

相關文章
相關標籤/搜索