IntelliJ IDEA配置緩存地址



  • idea的配置緩存路徑是保存配置文件和插件的本地目錄,對idea上的所有個人修改全都儲存在那里
  • 相比於eclipse的免安裝、解壓即用來說,一旦系統重裝或者idea重裝又沒有進行備份的情況下,個人對idea的個性化設置就會丟失
  • 而且默認路徑時c盤,隨着idea的使用和項目的創建,緩存目錄也會不斷增大,極大的占用的了系統空間資源
  • 可以將緩存目錄的路徑修改的其他盤符或者移動設備上,當在其他電腦工作時,只用安裝idea和配置緩存地址,軟件就像在自己的電腦上一樣的配置。

方法如下(idea14為例):

1.先找到c盤下的默認緩存文件夾,路徑:C:UsersAdministrator.IntelliJIdea14

2.將.IntelliJIdea14文件夾復制到其他地方,如D盤、U盤、移動硬盤等,並記錄路徑地址

3.打開idea的默認安裝目錄下的bin文件夾(我安裝在F盤為例)

地址:F:SoftWareIdeaIntelliJ IDEA 14.0.2bin

找到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}/.IntelliJIdea14/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}/.IntelliJIdea14/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=${user.home}/.IntelliJIdea14/config/plugins    

將里面的部分內容替換:

  • #---------------------------------------------------------------------  
  • # Uncomment this option if you want to customize path to 
  • # IDE config folder. Make sure you're using forward slashes.  
  • #---------------------------------------------------------------------  
  • idea.config.path=F:/SoftWare/.IntelliJIdea13/config  
  • #---------------------------------------------------------------------  
  • # Uncomment this option if you want to customize path to
  • # IDE system folder. Make sure you're using forward slashes.  
  • #---------------------------------------------------------------------  
  • idea.system.path=F:/SoftWare/.IntelliJIdea13/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=F:/SoftWare/.IntelliJIdea13/plugins  

也就是將${user.home}/.IntelliJIdea14部分替換成我們復制出來的緩存文件的路徑,把前面的#注釋去掉並保存

(這里要注意 / 符號的方向)

重新打開idea時就會和之前使用的一樣了,由於插件的更新失效問題,可能會有插件的錯誤,重新安裝插件即可,主題設置和習慣設置等個性化設置都會保留

我在更新14版本后配置13的緩存,沒有出現錯誤情況

如果是破解過的idea這時可能會讓你重新注冊,重新注冊不會影響配置緩存


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM