1.CTRL + SHIFT + A --> 查找Registry --> 找到并勾选compiler.automake.allow.when.app.running 2. FILE - SETTING - Build - Compiler - bulid project automatically 勾选上即可。