idea 默認路徑修改從C盤更改到D盤
更新時間:2024年07月30日 10:51:27 作者:sg_knight
本文主要介紹了idea 默認路徑修改從C盤更改到D盤,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧
本文介紹如何將idea的配置文件從默認的C盤調整到D盤,從而節(jié)省C盤使用空間。
默認存放位置
idea配置文件默認存放位置(XXX為用戶名):
- 用戶配置:C:\Users\XXX\AppData\Local\JetBrains
- 系統(tǒng)配置:C:\Users\XXX\AppData\Roaming\JetBrains
修改配置文件
打開idea安裝目錄下/bin/idea.properties文件。修改內容如下:
# Use ${idea.home.path} macro to specify location relative to IDE installation home.
# Use ${xxx} where xxx is any Java property (including defined in previous lines of this file) to refer to its value.
# Note for Windows users: please make sure you're using forward slashes (e.g. c:/idea/system).
confighome=D:/Program Files/JetBrains/Config
#---------------------------------------------------------------------
# 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
idea.config.path=${confighome}/.IntelliJIdea2021.1/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
idea.system.path=${confighome}/.IntelliJIdea2021.1/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.plugins.path=${idea.config.path}/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE logs folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.log.path=${idea.system.path}/log
idea.log.path=${idea.system.path}/log
重啟IDEA并導入原來的配置文件
修改配置文件后,重新啟動idea,會彈框提示是否導入原配置文件,選導入就會把原配置文件復制到新的配置路徑下。確認沒有問題后就可以將原配置文件刪除了以節(jié)省C盤空間。

到此這篇關于idea 默認路徑修改從C盤更改到D盤的文章就介紹到這了,更多相關idea 默認路徑修改內容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持腳本之家!
相關文章
Myeclipse部署Tomcat_動力節(jié)點Java學院整理
這篇文章給大家介紹了Myeclipse部署Tomcat的相關知識,非常不錯,具有參考借鑒價值,需要的的朋友參考下吧2017-07-07
Spring Boot實現(xiàn)圖片上傳/加水印一把梭操作實例代碼
這篇文章主要給大家介紹了關于Spring Boot實現(xiàn)圖片上傳/加水印一把梭操作的相關資料,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧2018-11-11

