1.下载安装VSCode
2.下载安装clang
brew install --with-toolchain llvm
3.下载C/C++语言插件
4.下载CMake插件
5.下载C/C++ Clang Command Adapter插件
6.下载Code Runner插件
7.配置launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true, // 如果要调试有输入互动的程序,那么就要从外部控制台启动;vscode的集成控制台不支持输入;
"MIMode": "lldb",
"preLaunchTask": "clang build active file"
}
]
}
8.配置tas


1339

被折叠的 条评论
为什么被折叠?



