打开settings界面:File->Settings选中Compiler选项:Build,Execution,Deployment->Compiler选中Build project automatially后Apply OK保存