用 vscode 运行 C/C++ 程序时,如果修改后,在没有保存的情况下再次运行程序,程序会自动运行修改之前的代码。

解决方案:

  1. file -> preferences -> settings -> 搜索 save -> 在 Files: Auto Save 中选择 onFocusChange

vscode 运行程序时自动保存

 

2.  「勾选」Code-runner:Save File Before Run

vscode 运行程序时自动保存

 

 

 

参考:

https://www.cnblogs.com/marsggbo/p/11289219.html

相关文章:

  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-16
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2021-12-26
相关资源
相似解决方案