Last active
September 1, 2023 20:18
-
-
Save datlife/505b466c1d3e230cf40bbc344fdd4a81 to your computer and use it in GitHub Desktop.
C/C++ Workspace settings for VSCode on MacOS (lldb for Debugger)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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" | |
}, | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 }" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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