VS2005 to recognize .cu files

I have just started with CUDA development. The first thing that I see is that .cu files are very similar to .cpp files. But what I see is that the right-click on objects does not work. For example, I cannot use nice VS2005 features like “Go To Definition”, “Find All References”, etc.

A simple renaming .cu files to .cpp does the trick (right-click starts working). But then the filess cannot be compiled, even if the custom .cu build rules are set.

Does anyone know how to resolve this?

Thanks!

Try to set ‘Syntax Highlighting’

To set Syntax Highlighting, please refer below link.

http://forums.nvidia.com/index.php?showtopic=35669

After do this, I can use not only syntax highlighting but also vs2005 features like “Go To Definition” etc.