cocos2d-x and VS Code autocompletion

Hi to all,

I’m currently struggling trying to enable VS Code intellisense in my cocos2d-x c++ projects. The code autocompletion works only with std classes and not with cocos2d-x classes.
Some additional details:

  • The project is working great, I’m able to compile it in my linux system without errors;
  • I’ve tried to modify the includePath VS Code variable to add the cocos2d/cocos/ directory in which all the header files are present: now VSCode accepts all the #header directives with the code but the autocompletion is still not working:
  • there is no official docs how to use VS Code with cocos2d-x (only docs for cocos creator…)

Thank you in advance… writing cocos2d-x code without autocompletion is a mess!