Sublime Forum

How to enable c++ sublime package in CUDA files(*.cu ,*.cuh)

#1

I do cuda development. Now there are two cuda packages in sublime text to CUDA syntax highlight,CUDA C++ and CUDA snippets(I am the author). I create a new syntax named CUDA C++ in fileTypes .cu, .cuh and .h. CUDA code is almost the same as C++ code, but I cann’t use c++ packages, such as C++ sinppets, in CUDA C++ files.
How could I solve this problem?

I think add .cu or .cuh in the file types in the c++ language file is a good solution, how could I do it?

Thanks

0 Likes