# No Cuda syntax highlighting/debugging when using CMake.

**URL:** https://discourse.cmake.org/t/no-cuda-syntax-highlighting-debugging-when-using-cmake/10675
**Category:** Usage
**Tags:** lang:cuda
**Created:** [April 16, 2024, 11:58am UTC](https://discourse.cmake.org/t/no-cuda-syntax-highlighting-debugging-when-using-cmake/10675 "2024-04-16T11:58:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![LouChiSoft](https://discourse.cmake.org/user_avatar/discourse.cmake.org/louchisoft/32/4443_2.png) [@LouChiSoft](https://discourse.cmake.org/u/LouChiSoft)
#### Post date: [April 16, 2024, 11:58am UTC](https://discourse.cmake.org/t/no-cuda-syntax-highlighting-debugging-when-using-cmake/10675/1 "2024-04-16T11:58:45Z")

</div>

Hi, when using Visual Studio to open a CMake project (not a visual studio project generated by CMake) and pass the command line arguments `--preset conan-default` in CMakeSettings.json I get a valid project that builds without issue. But the intellisense in visual studio has no reference to Cuda or the ability to debug kernels.

If I build a new project in Visual Studio for Cuda all the advertised features are available so I assume that this is a misconfiguration of CMake, but not sure how to fix. Any help would be appreciated.
