autocomplete - Cannot auto-complete c++ in vs code -
hey started using vs code , having weird issue. code won't auto complete. have installed c/c++ extension , have "c_cpp_properties.json" file containning following
{ "configurations": [ { "name": "mac", "includepath": ["/usr/include"] }, { "name": "linux", "includepath": ["/usr/include"] }, { "name": "win32", "includepath": ["c:/program files (x86)/microsoft visual studio 14.0/vc/include"] } ] }
before ask have copied proper include path "/usr/include" did simple test wrote 1 line
"vkinstance instance;" compiled , ran fine whenever start type vkinstance never comes auto complete. weirdly stuff auto completes fine , other stuff doesn't example "vkcreateinstance" shows i'm typing it. perhaps i'm missing or doing wrong feedback
thanks!
#include <vulkan/vulkan.h> int main() { vkinstance instance; return 0; }
this seems limitation (or bug?) of vscode's code completion feature. vulkan header wraps typdefs handles (like vkinstance, vkfence, etc.) in macro , looks vscode can't handle this.
e.g. this:
vk_define_handle(vkinstance)
won't autocomplete, if replace macro hand this:
typedef struct vkinstance_t* vkinstance;
auto-completion works.
if bug (just had quick @ this), may worth reporting on @ https://github.com/microsoft/vscode-cpptools/issues
Comments
Post a Comment