1、今天打开idea,却发现闪退,怎么都打不开。用的Mac系统,于是我找到应用程序,打开显示包内容:
![](https://img-blog.csdnimg.cn/img_convert/f39ad8423782b90d4df3fe3fc99c4cda.png)
![](https://img-blog.csdnimg.cn/img_convert/b6d1c99d4c10a31e78a6774f8faa4313.png)
![](https://img-blog.csdnimg.cn/img_convert/6f3680f09e1acadeec2755b0e21fa3dd.png)
![](https://img-blog.csdnimg.cn/img_convert/f14b6345c432816f90bee595780c554b.png)
![](https://img-blog.csdnimg.cn/img_convert/0eefb8dbeaef8da90203234ee3baec95.png)
2、找到配置文件路径:
/Users/zhoujialin/Library/ApplicationSupport/JetBrains
找到指定idea,打开编辑 vi idea.vmoptions ,删除下面信息。保存
或者命令行操作
cd /Users/zhoujialin/Library/Application\ Support/JetBrains/IntelliJIdea2022.3
open idea.vmoptions
![](https://img-blog.csdnimg.cn/img_convert/74f16d9492b4331d1dfd55ae7bbdfc3a.png)
3、重新打开idea 即可
![](https://img-blog.csdnimg.cn/img_convert/54de5770f32807751ab1f8adf48c6939.png)