《怎樣把phpstorm(或IntelliJ IDEA2017)配置和緩存目錄從C盤(pán)移出?》要點(diǎn):
本文介紹了怎樣把phpstorm(或IntelliJ IDEA2017)配置和緩存目錄從C盤(pán)移出?,希望對(duì)您有用。如果有疑問(wèn),可以聯(lián)系我們。
相關(guān)主題:PHP開(kāi)發(fā)編輯器
phpstorm是一款非常好用的PHP編輯器,但是它的緩存目錄占空間非常大,默認(rèn)是放在C盤(pán)用戶(hù)目錄的臨時(shí)數(shù)據(jù)目錄 C:\Users\你的電腦用戶(hù)名\.PhpStorm2017.2 下,
如果C盤(pán)空間不夠,再經(jīng)常運(yùn)行PHPSTORM,就很容易占滿C盤(pán)。那下是教你怎樣把PHPSTORM的配置和緩存目錄移出C盤(pán)。也適用于IntelliJ IDEA2017。
現(xiàn)在想要把它從C盤(pán)移出。
在IDEA的安裝路徑下中,進(jìn)入bin目錄后找到屬性文件:idea.properties 用記事本打開(kāi),找到如下代碼段:
#--------------------------------------------------------------------- # 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)這些配置是注釋掉的,我在這可吃了大虧,沒(méi)想到配置沒(méi)有生效的原因是如此簡(jiǎ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刪除了也可以,原來(lái)的項(xiàng)目也都能找得到
PS:初始緩存文件夾.IntelliJIdea2017.1的來(lái)歷,之前安裝的是IDEA2015,那時(shí)的緩存文件是.IntelliJIdea,后來(lái)將IDEA2015升級(jí)成了IDE2017,在同一個(gè)目錄下生成了這個(gè).IntelliJIdea2017.1文件夾??赡苁荌DEA內(nèi)部的某種設(shè)置,如果文件中已經(jīng)存在了.IntelliJIdea文件,就要在后面增加版本號(hào)后綴。
轉(zhuǎn)載請(qǐng)注明本頁(yè)網(wǎng)址:
http://www.snjht.com/jiaocheng/156.html