C with vscode run when a C ++ program, if modified, run again without save / program, the program will automatically run code before modification.
solution:
file -> preferences -> settings -> Search save -> In Files: Select onFocusChange Auto Save in
reference:
https://www.cnblogs.com/marsggbo/p/11289219.html