1.首先设置为自动编译
“File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”
2.允许运行时自动编译
“Shift+Ctrl+Alt+/” ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running”
“File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”
“Shift+Ctrl+Alt+/” ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running”