我感觉最简单的方法,仅供参考 1、Help—Edit Custom VM Options… 2、复制粘贴 复制粘贴下面的语句,在打开的页面尾部粘贴; -Deditable.java.test.console=true 3、重启idea即可解决。