电脑上安装了idea,但是想用另一个版本了
直接安装exe会导致之前的版本有些配置被覆盖,之前的就打不开了
这时我们可以下载压缩包形式的安装包,直接解压使用.就不会破坏之前的配置了
1.下载ZIP安装包

2.解压安装包到要安装到的文件夹中。
3.打开解压后的文件夹,找到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: C:/dir1/dir2.
#使用${idea.home.path}宏指定相对于IDE安装主页的位置。
#使用${xxx},其中xxx是任何Java属性(包括在此文件的前几行中定义的属性)来引用其值。
#Windows用户注意:请确保使用正斜杠:C/dir1/dir2。
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the settings directory.
#如果要自定义设置目录的路径,请取消注释此选项。
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.IntelliJIdea/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize a path to the caches directory.
#如果要自定义缓存目录的路径,请取消注释此选项。
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.IntelliJIdea/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:\idea\ideaIU-2023.3.6.win,这里直接写实际路径就好
# 注意是 "/" 而不是 "\" ,windows资源管理器路径复制下来是"\",要改
idea.config.path=C:/idea/ideaIU-2023.3.6.win/.IntelliJIdea/config
idea.system.path=C:/idea/ideaIU-2023.3.6.win/.IntelliJIdea/system
idea.plugins.path=C:/idea/ideaIU-2023.3.6.win/plugins
idea.log.path=C:/idea/ideaIU-2023.3.6.win/log
注意:不要放到Program Files和Program Files (x86)文件夹中,启动会报错
大概是因为权限

4.双击bin目录下的idea64.exe文件就可以运行了

然后两个idea就都可以用了,配置文件也分开了