Skip to content

Instantly share code, notes, and snippets.

@datlife
Last active September 1, 2023 20:18
Show Gist options
  • Save datlife/505b466c1d3e230cf40bbc344fdd4a81 to your computer and use it in GitHub Desktop.
Save datlife/505b466c1d3e230cf40bbc344fdd4a81 to your computer and use it in GitHub Desktop.
C/C++ Workspace settings for VSCode on MacOS (lldb for Debugger)
{
// 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) Debug binary_tree",
"type": "cppdbg",
"request": "launch",
"preLaunchTask": "build binary_tree", // make sure latest build is compiled before debugging
"program": "${workspaceFolder}/binary_tree",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb"
},
]
}
{
"files.associations": {
"__config": "cpp",
"__nullptr": "cpp",
"cstddef": "cpp",
"exception": "cpp",
"initializer_list": "cpp",
"new": "cpp",
"stdexcept": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"algorithm": "cpp",
"memory": "cpp"
},
"editor.rulers": [80],
"editor.tabSize": 2,
"C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Google, IndentWidth: 2 }"
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "build binary_tree",
"type": "shell",
"command": "g++ -std=c++11 -g binary_tree.cc -Wall -Werror -o binary_tree",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment