vscode-cmantic
vscode-cmantic copied to clipboard
C++ code is not detected.
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
a member"
It should work, it's C++.
Thank you, Adrian
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.
I think the issue will be fixed when you change this.