Skip to content

Adding custom filename extensions #6868

Answered by bobbrow
FJShen asked this question in Q&A
Discussion options

You must be logged in to vote

Take a look at the Files: Associations setting in VS Code. If you tell VS Code to treat *.cu and *.cuh as cpp, then the C/C++ extension will start processing those files. Do note that the extension does not currently understand CUDA-specific code, so you will see squiggles for those constructs. You can work around some of those problems (e.g. certain keywords/attributes) by adding stuff like "__global__=" in the "defines" section of your c_cpp_properties.json file.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FJShen
Comment options

Answer selected by FJShen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants