1. 程式人生 > 程式設計 >有關將idea的系統配置檔案移到其它盤啟用失效的問題

有關將idea的系統配置檔案移到其它盤啟用失效的問題

1. 系統盤清理說明

win7 80G的系統盤,隨著使用時間的增加,空間越來越小,只剩不到2G,隨計劃清理系統盤資料
1. maven 下載的jar移動到其它盤,這個比較簡單,這裡不做說明
修改maven settings.xml檔案目錄根據需要修改,<localRepository>D:/m2_repo/repository</localRepository>
2. idea 2019.3,C:\Users\使用者名稱\.IntelliJIdea2019.3目錄佔3.4G,移到其他碟符後發現註冊失效

2. idea 註冊失效解決

關閉所有idea應用

2.1 修改idea安裝目錄配置檔案

修改安裝目錄idea 安裝目錄配置檔案,bin/idea.properties,目的目錄根據需要修改

# idea.config.path=${user.home}/.IntelliJIdea/config
idea.config.path=D:/idea_config/.IntelliJIdea2019.3/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=D:/idea_config/.IntelliJIdea2019.3/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=D:/idea_config/.IntelliJIdea2019.3/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=D:/idea_config/.IntelliJIdea2019.3/log

2.2 刪除系統盤多餘的檔案

這個目錄和檔案保留,其它檔案和目錄全部刪除
C:\Users\使用者名稱\.IntelliJIdea2019.3\config\idea64.exe.vmoptions

2.3 開啟 idea 測試

開啟idea,發現一切正常,配置檔案都在,註冊也沒有失效。

到此這篇關於有關將idea的系統配置檔案移到其它盤啟用失效的問題的文章就介紹到這了,更多相關idea配置檔案移到其它盤啟用失效內容請搜尋我們以前的文章或繼續瀏覽下面的相關文章希望大家以後多多支援我們!