Tools idea 打开 toggle auto-test , 然后由于是编译的时候触发操作, 所以可以取消 save all ctrl + s 快捷键(依赖自动保存), 然后将其设置到 build project 中. 也可以打开 auto compile 但是实测有延迟, 而且会加重心智负担