IntelliJ Idea2017如何修改緩存文件的路徑
IDEA的緩存文件夾.IntelliJIdea2017.1,存放著IDEA的破解密碼,各個(gè)項(xiàng)目的緩存,默認(rèn)是在C盤的用戶目錄下,目前有1.5G大小。現(xiàn)在想要把它從C盤移出。
在IDEA的安裝路徑下中,進(jìn)入bin目錄后找到屬性文件:idea.properties 用記事本打開,找到如下代碼段:
#---------------------------------------------------------------------# Uncomment this option if you want to customize path to IDE config folder. Make sure you’re using forward slashes.#---------------------------------------------------------------------# idea.config.path=${user.home}/.IntelliJIdea/config#---------------------------------------------------------------------# Uncomment this option if you want to customize path to IDE system folder. Make sure you’re using forward slashes.#---------------------------------------------------------------------# idea.system.path=${user.home}/.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=${idea.config.path}/plugins
需要注意,在IDEA2017中,默認(rèn)這些配置是注釋掉的,我在這可吃了大虧,沒想到配置沒有生效的原因是如此簡單。
更改配置文件如下:
#---------------------------------------------------------------------# Uncomment this option if you want to customize path to IDE config folder. Make sure you’re using forward slashes.#---------------------------------------------------------------------idea.config.path=E:/jiashubing/.IntelliJIdea/config#---------------------------------------------------------------------# Uncomment this option if you want to customize path to IDE system folder. Make sure you’re using forward slashes.#---------------------------------------------------------------------idea.system.path=E:/jiashubing/.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=${idea.config.path}/plugins
更改了以后重啟IDEA,會(huì)彈出如下界面Complete Installation,選擇Previous version
此時(shí),在目錄下生成了一個(gè).IntelliJIdea文件
此時(shí)把.IntelliJIdea2017.1刪除了也可以,原來的項(xiàng)目也都能找得到
PS:初始緩存文件夾.IntelliJIdea2017.1的來歷,之前安裝的是IDEA2015,那時(shí)的緩存文件是.IntelliJIdea,后來將IDEA2015升級成了IDE2017,在同一個(gè)目錄下生成了這個(gè).IntelliJIdea2017.1文件夾。可能是IDEA內(nèi)部的某種設(shè)置,如果文件中已經(jīng)存在了.IntelliJIdea文件,就要在后面增加版本號后綴。
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持好吧啦網(wǎng)。
相關(guān)文章:
1. asp知識(shí)整理筆記4(問答模式)2. CSS可以做的幾個(gè)令你嘆為觀止的實(shí)例分享3. 讀大數(shù)據(jù)量的XML文件的讀取問題4. JSP+Servlet實(shí)現(xiàn)文件上傳到服務(wù)器功能5. JSP之表單提交get和post的區(qū)別詳解及實(shí)例6. javascript xml xsl取值及數(shù)據(jù)修改第1/2頁7. 低版本IE正常運(yùn)行HTML5+CSS3網(wǎng)站的3種解決方案8. jsp文件下載功能實(shí)現(xiàn)代碼9. ASP實(shí)現(xiàn)加法驗(yàn)證碼10. 概述IE和SQL2k開發(fā)一個(gè)XML聊天程序
