C/C++ Code is formatted using the clang-format
extension for VSCode.
You can install it on OSX using brew install clang-format
and use this extension to invoke it from VSCode.
If you have issues with errors reported by Intellisense for <node_version.h>
, you will need to edit your c_cpp_properties.json
to add your node-gyp
headers to the includePath
.
"includePath": [
"${workspaceFolder}/**",
"~/.node-gyp/<node version>/include/node"
],
Where <node version>
is the version of node you're compiling against.