How can I get syntax highlighting for a .cu file in Visual Studio?
I am studying CUDA based on the Visual Studio 2008. Cou开发者_高级运维ld you please tell me how to make syntax highlighting appear in a .cu file?
Follow these steps.
- Copy
usertype.dat
fromProgram Files\NVIDIA Corporation\NVIDIA CUDA SDK\doc\syntax_highlighting\visual_studio_8
toProgram Files\Microsoft Visual Studio 8\Common7\IDE
. - Start Visual
Studio and go to
Tools -> Options -> Text Editor -> File Extension
- In the extension box type "cu" and select "Microsoft Visual C++" in the drop down.
- Restart.
Install Parallel Nsight, It will do it automatically.
(Visual Studio 2015, v14.0)
- Menu: Tools > Options
- Sidebar: Text Editor > File Extension
- Enter 'cu' for extension, select 'C++' for editor, click 'add'.
- Re-open file with 'cu' extension
精彩评论