这是VS code的官网原文,关于如何使用task.json进行编译C++源文件和debug文件launch.json。
许多博客都有说到这两个文件怎么使用,但是没有详细解说,所以推荐看官网原文,里面还会夹杂一些tips,毕竟官网,新人入门十分推荐。
传送门:https://code.visualstudio.com/docs/cpp/config-linux#_debug-helloworldcpp
注意:官网是英文版的,个人觉得英文版表述会比翻译过来的原汁原味。CET-4阅读起来完全OK,有空后续再追加翻译吧。