让vs2005支持NVDIA CUDA的cu文件语法高亮显示

1、安装好CUDA SDK后,找到安装目录D:/softwareofliuting/CUDA SDK/doc/syntax_highlighting/visual_studio_8。(我安装在D:/softwareofliuting) 2、打开readme.txt,按照上面的步骤进行就可以了。 ant 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 included usertype.dat file there. If you do, append the contents of the included usertype.dat onto the end of the "Microsoft Visual Studio 8/Common7/IDE/usertype.dat" //打开的安装目录下除了read.txt之外,还有usertype.dat文件,将这个文件拷贝到Microsoft Visual Studio 8/Common7/IDE目录下。 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. //启动vs2005,选择“工具”菜单中的“选项”,选择“文本编辑器”中的“文件扩展名”,在右边的“扩展名”对应的栏里输入“cu”,单击“确定”。 3. Restart Visual Studio and your shaders should now have syntax highlighting.
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值