Reputation: 726809
Is it possible to configure VS Code plugin for C/C++ to treat .C files as C++ code? The icon in the explorer on the left correctly indicates that my files with .C extension are C++, but intellisense treats C++ constructs inside these files as errors. Renaming the file to .cpp avoids this problem. Is there a configuration setting that would let me specify that .C extension corresponds to C++ code?
Upvotes: 3
Views: 2044
Reputation: 726809
Make a file association for C extensions to map to C++ as follows:
Upvotes: 4