方法一 “File” - “Other Settings” - “Default Settings” - “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “Build project automatically” 2.组合键:“Shift+cmd+Alt+/” ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running” 方法二