修改C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1.3下product-info.json文件
{
"name": "IntelliJ IDEA",
"version": "2019.1.3",
"buildNumber": "191.7479.19",
"productCode": "IC",
"svgIconPath": "bin/idea.svg",
"launch": [
{
"os": "Windows",
"launcherPath": "bin/idea64.exe",
"javaExecutablePath": "C:/Program Files/Java/jdk1.8.0_181/bin/java.exe", // 修改
"vmOptionsFilePath": "bin/idea64.exe.vmoptions"
}
]
}
修改C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1.3\bin下idea64.exe.vmoptions文件
-Xms128m
-Xmx750m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-agentpath:e:/tools/swing-inspector/x64/swing-inspector-agent.dll // 添加
启动后Ctrl+F12即可显示GUI层次结构.