前提:是idea壓縮包都是解壓安裝
?????? 想要在同一臺電腦中安裝多個idea,低版本例如idea2019和idea2020的正常安裝可能不會有報錯提示,但是有時候第二個idea版本比較高例如idea2022,會發(fā)現(xiàn)解壓后打不開程序,那就就需要安裝下面的操作流程進(jìn)行解決。
1.第一個版本正常安裝
2.接下來安裝第二個版本,先下載解壓版的zip包,解壓后,
??? 修改/ideaIU-2022.2.1.win/bin/idea.properties的如下配置:
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the settings directory.
#---------------------------------------------------------------------
idea.config.path=${user.home}/.IntelliJIdea2022.2.1/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the caches directory.
#---------------------------------------------------------------------
idea.system.path=${user.home}/.IntelliJIdea2022.2.1/system
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the user-installed plugins directory.
#---------------------------------------------------------------------
idea.plugins.path=${idea.config.path}/plugins
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the logs directory.
#---------------------------------------------------------------------
idea.log.path=${idea.system.path}/log
同時在C:\Users\用戶\目錄下創(chuàng)建一個名稱為 .IntelliJIdea2022.2.1的文件夾
這樣兩個不同版本的idea就可以獨立的使用自己的一條配置
3.刪除緩存文件
第二個idea安裝完成后,打不開,但是緩存文件已經(jīng)生成了,需要刪除掉,
路徑 : C:\Users\用戶名\AppData\Roaming\JetBrains\
找到打不開的那個版本的idea同名目錄刪除掉即可文章來源:http://www.zghlxwxcb.cn/news/detail-404800.html
4.打開idea進(jìn)行激活即可文章來源地址http://www.zghlxwxcb.cn/news/detail-404800.html
到了這里,關(guān)于同一臺電腦安裝多個版本的idea(jetbrains)開發(fā)工具的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!