BigBahss / vscode-cmantic

C/C++ code generation for VS Code: Generate Definitions, Getters, Setters, and much more.
https://bigbahss.github.io/vscode-cmantic/
MIT License
82 stars 9 forks source link

C++ code is not detected. #47

Open AdrianMolecule opened 2 years ago

AdrianMolecule commented 2 years ago

I'm using PlatformIO which uses .cpp and .h files I click in a .h file, select a field invoke c-mantic generate getters and setters and I get "Detected language is not C++, cannot create image a member"

It should work, it's C++.

Thank you, Adrian

zjeffer commented 1 year ago

I know this is an old issue, but It looks like the language mode for the selected file is not set to C++ (because you don't have type colors). This is a vscode issue: you can change the detected language in the bottom right of the window when your file is selected.

image

I think the issue will be fixed when you change this.