* .cu文件中的突出显示代码-visual stdio 2010 [英] highlight code in *.cu file -visual stdio 2010

查看:72
本文介绍了* .cu文件中的突出显示代码-visual stdio 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在Visual Studio 2010中从事CUDA项目的工作.cpp文件中的代码像往常一样突出显示,但是我在任何地方都找不到如何突出显示cu文件中的代码的方法,因此很难用黑白编写..有任何想法吗?

I am working on a CUDA project in Visual Studio 2010. The code in cpp file is highlighted as usual but I cannot find anywhere how  to highlight code inside cu file and it is really difficult to write in black and white.. any ideas?

推荐答案

阿曼达,
 
据我所知,您可以在Visual Studio中突出显示以下几行:
单击工具,然后选择选项.然后展开环境"节点,然后移至字体和颜色"选项.
 
您可以在显示项目"下面的文本框中选择要突出显示的项目.然后从右侧更改项目的前景和背景.您将在窗口的右下角看到结果.最后单击确定以保存所有 更改.
 
正如您的问题一样,我认为您可以尝试这样.如果您对CUDA项目还有其他疑问,建议您转到" INVIDIA开发人员区域"以获得更有效的响应.
 
最好的问候,
海伦

Hi Amanda,
 
As far as I know, you can highlight some lines in Visual Studio as follows:
Click Tools and select Options. Then expand Environment node, and move to Fonts and Colors option.
 
You can choose the item you would like to highlight in the textbox below Display items. And then change foreground and background for the item from the right side. You will see the result at the lower right corner of the window. Finally click OK to save all the changes. 
 
As in your issue, I think you can have a try like this. If you have any other questions about CUDA project, I suggest you move to "INVIDIA Developer Zone" for more efficient responses.
 
Best regards,
Helen

 


这篇关于* .cu文件中的突出显示代码-visual stdio 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆