Want pretty syntax highlighting when editing your. Cu files in Visual Studio?
Heres how:
---
Visual Studio. NET 2005/Visual Studio 8:
1. if you don't have a usertype. DAT file in your "Microsoft Visual Studio 8/common7/ide" folder, then copy the specified usertype. DAT file there. if you do, append the contents of the specified usertype. dat onto the end of the "Microsoft Visual Studio 8/common7/IDE/usertype. dat"
2. start Visual Studio 8. select the menu "tools-> options... ". open "Text Editor" in the Tree View on the left, and click on "file extension ". type Cu in the "extension" box, and click "add ". click "OK" on the dialog box.
3. Restart Visual Studio and your shaders shoshould now have syntax highlighting.
PS: The above content comes to C:/program files/NVIDIA Corporation/NVIDIA Cuda SDK/doc/syntax_highlighting/visual_studio_8/readme.txt
When adding a Cu, it is best to select the VC ++ editor as the Cu default editor, so that you can use the C/C ++ rules to edit the Cu file.