1.查看官网。方式:vscode里点帮助
2.release总结步骤:
-首先建立helloworld.cpp文件:
#include <iostream>
#include <vector>
#include <string>
using namespace std;
int main()
{
vector<string> msg {"Hello", "C++", "World", "from", "VS Code", "and the C++ extension!"};
for (const string& word : msg)
{
cout << word << " ";
}
cout << endl;
}
-ctrl+shift+p:搜索Configure Defalut Build Task,接着点击第二项,生成task.json文件,不用修改它
-Ctrl+Shift+B:这里终端显示build结果
-再创建一个终端:点击加号
3.Debug总结步骤:
F5即可,不用修改launch.json文件
另外可以安装如下插件:有很多插件是c++ extension这个插件的