Overview Version History Q & A Rating & Review
Extension Pack for Visual Studio Code
Includes the basic extensions to get started with C /C++ development in Visual Studio Code.
Extensions
Extension
Objective
C/C++
C/C++ IntelliSense, debugging, and code browsing.
C/C++ Snippets
Code snippets for C/C++
clangd
C and C++ completion, navigation, and insights browsing.
Native Debug
GDB, LLDB & Mago-MI Debugger support for VSCode
CodeLLDB
Native debugger based on LLDB.
Configuration
clangd
Install the packages required by the extension, which will give you a similar config:
"clangd.path": "c:\\Users\\youruser\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\10.0.0\\clangd_10.0.0\\bin\\clangd.exe",
In order to be able to read the definitions of the libraries you're using, add in your config a clangd.arguments
key, having similar properties as the one bellow (which is an example for developing a nodejs addon with nan)
"clangd.arguments": [
"-IC:/Users/dragosc/Workspace/exploit-server-llsign/node_modules/nan",
"-IC:/Users/dragosc/AppData/Local/node-gyp/Cache/12.16.2/include/node"
]
Please file any issues .