解決IDEA占用C盤空間過(guò)大的問(wèn)題
筆者最近的C盤空間吃緊,開始亮紅色警告了。使用SpaceSniffer進(jìn)行磁盤空間占用分析,發(fā)現(xiàn)IDEA不同版本占用空間達(dá)到10G之多。
這個(gè)軟件長(zhǎng)這樣(截止截圖時(shí)idea工廠設(shè)置目錄已經(jīng)被遷移走了,因?yàn)樗麜?huì)不停監(jiān)視磁盤空間變換,所以看不到IDEA工程設(shè)置目錄了。)
后來(lái)在網(wǎng)上找到一篇文章,找到IDEA安裝目錄,修改idea.properties設(shè)置如下
idea.config.path=g:/.IntelliJIdea2019.3/configidea.system.path=g:/.IntelliJIdea2019.3/systemidea.plugins.path=g:/.IntelliJIdea2019.3/pluginsidea.log.path=g:/.IntelliJIdea2019.3/log
補(bǔ)充:清理IntelliJ IDEA中C盤中的緩存文件
idea在c盤中產(chǎn)生的緩存文件大概800多m,占據(jù)了c盤的很大空間,可以把這個(gè)東西移到其他盤符下,我的操作是移動(dòng)到E盤
# path to IDEA config folder. Make sure you’re using forward slashes idea.config.path=${user.home}/IntelliJIdea/config # path to IDEA system folder. Make sure you’re using forward slashes idea.system.path=${user.home}/IntelliJIdea/system # path to user installed plugins folder. Make sure you’re using forward slashes idea.plugins.path=${user.home}/IntelliJIdea/config/plugins
原本的配置文件在idea的安裝目錄下的bin目錄下的idea.properties直接打開進(jìn)行修改成
idea.config.path=E:/IntelliJIdea/config idea.system.path=E:/IntelliJIdea/system idea.plugins.path=${idea.config.path}/plugins idea.log.path=${idea.system.path}/log
這樣重新啟動(dòng)肯定是配重新配置,比較麻煩,直接把在c盤下的文件夾直接拷貝到E盤重新啟動(dòng)idea即可
以上為個(gè)人經(jīng)驗(yàn),希望能給大家一個(gè)參考,也希望大家多多支持好吧啦網(wǎng)。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教。
相關(guān)文章:
1. Ajax實(shí)現(xiàn)文件上傳功能(Spring MVC)2. 基于javaweb+jsp實(shí)現(xiàn)學(xué)生宿舍管理系統(tǒng)3. idea設(shè)置代碼格式化的方法步驟4. 使用EF Code First搭建簡(jiǎn)易ASP.NET MVC網(wǎng)站并允許數(shù)據(jù)庫(kù)遷移5. ASP開發(fā)準(zhǔn)則是什么6. vue動(dòng)態(tài)加載SVG文件并修改節(jié)點(diǎn)數(shù)據(jù)的操作代碼7. python 工具 字符串轉(zhuǎn)numpy浮點(diǎn)數(shù)組的實(shí)現(xiàn)8. Python 實(shí)現(xiàn)平臺(tái)類游戲添加跳躍功能9. Python多分支if語(yǔ)句的使用10. python 日志模塊logging的使用場(chǎng)景及示例
