Last active
December 20, 2022 20:36
-
-
Save batunpc/60660f9ffbd8ad4036d5ee0314785698 to your computer and use it in GitHub Desktop.
C++ setup for `.vscode` using cmake tools on M1 Macbook.
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug", | |
"type": "cppdbg", | |
"request": "launch", | |
// Resolved by CMake Tools: | |
"program": "${command:cmake.launchTargetPath}", | |
"args": [ | |
"${fileDirname}/input.txt" | |
], | |
"stopAtEntry": false, | |
"cwd": "${workspaceFolder}/build", | |
"environment": [ | |
{ | |
// add the directory where our target was built to the PATHs | |
// it gets resolved by CMake Tools: | |
"name": "input.txt", | |
"value": "$PATH:${command:cmake.launchTargetDirectory}" | |
}, | |
{ | |
"name": "OTHER_VALUE", | |
"value": "Something something" | |
} | |
], | |
"externalConsole": false, | |
"MIMode": "lldb", | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": true | |
} | |
], | |
"presentation": { | |
"hidden": false, | |
"group": "", | |
"order": 1, | |
"clear": true | |
} | |
} | |
] | |
} |
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
{ | |
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", | |
"files.associations": { | |
"*.cpp": "cpp", | |
"*.ng.html": "html", | |
"iostream": "cpp", | |
"__bit_reference": "cpp", | |
"__bits": "cpp", | |
"__config": "cpp", | |
"__debug": "cpp", | |
"__errc": "cpp", | |
"__hash_table": "cpp", | |
"__locale": "cpp", | |
"__mutex_base": "cpp", | |
"__node_handle": "cpp", | |
"__nullptr": "cpp", | |
"__split_buffer": "cpp", | |
"__string": "cpp", | |
"__threading_support": "cpp", | |
"__tuple": "cpp", | |
"array": "cpp", | |
"atomic": "cpp", | |
"bit": "cpp", | |
"bitset": "cpp", | |
"cctype": "cpp", | |
"chrono": "cpp", | |
"clocale": "cpp", | |
"cmath": "cpp", | |
"compare": "cpp", | |
"complex": "cpp", | |
"concepts": "cpp", | |
"cstdarg": "cpp", | |
"cstddef": "cpp", | |
"cstdint": "cpp", | |
"cstdio": "cpp", | |
"cstdlib": "cpp", | |
"cstring": "cpp", | |
"ctime": "cpp", | |
"cwchar": "cpp", | |
"cwctype": "cpp", | |
"exception": "cpp", | |
"initializer_list": "cpp", | |
"ios": "cpp", | |
"iosfwd": "cpp", | |
"istream": "cpp", | |
"limits": "cpp", | |
"locale": "cpp", | |
"memory": "cpp", | |
"mutex": "cpp", | |
"new": "cpp", | |
"numbers": "cpp", | |
"optional": "cpp", | |
"ostream": "cpp", | |
"ratio": "cpp", | |
"sstream": "cpp", | |
"stdexcept": "cpp", | |
"streambuf": "cpp", | |
"string": "cpp", | |
"string_view": "cpp", | |
"system_error": "cpp", | |
"tuple": "cpp", | |
"type_traits": "cpp", | |
"typeinfo": "cpp", | |
"unordered_map": "cpp", | |
"variant": "cpp", | |
"vector": "cpp", | |
"__functional_base": "cpp", | |
"algorithm": "cpp", | |
"functional": "cpp", | |
"iterator": "cpp", | |
"utility": "cpp", | |
"deque": "cpp", | |
"fstream": "cpp", | |
"iomanip": "cpp", | |
"stack": "cpp" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Referred from microsoft/vscode-cmake-tools