在VS 2010中的.cu文件中没有颜色 [英] no color in .cu file in VS 2010
问题描述
我正在开发简单的CUDA应用程式。我按照 http://www.ademiller.com/blogs/tech/2010/10/visual-studio-2010-adding-intellisense-support-for-cuda-c/ 但仍然没有颜色.cu文件。我的意思是一切都只是在黑色什么可能的原因?
我可以运行程序。
I'm developing simple CUDA app. I followed steps given on http://www.ademiller.com/blogs/tech/2010/10/visual-studio-2010-adding-intellisense-support-for-cuda-c/ but still there is no color in .cu file. I mean everything is simply in black color what could be the reason? I'm able to run program.
推荐答案
这张图片说明了这一切。转到工具>选项,然后选择左侧列中的文本编辑器。然后单击文件扩展名,如图所示。在扩展下键入cu,选择Microsoft Visual C ++作为编辑器,然后单击添加。在我的经验,这是所有必要的使Visual Studio解释/颜色我的.cu文件与c + +语法。
This image says it all. Go to Tools > Options, then select Text Editor in the left column. Then click on File Extension as shown. Type cu under extension, pick Microsoft Visual C++ as the editor, and then hit Add. In my experience, this is all that was necessary to make Visual Studio interpret/color my .cu files with c++ syntax.
另请注意,这与您发布的链接类似。这个方法只是一个视觉描述。另外请注意,我并没有真正做这个网站列出的额外步骤,因为分享和设备,所有的颜色似乎并不重要。
Also note that this is similar to what the link you posted suggests. This method is simply a visual description of that. Also note that I didn't really do the extra steps listed on that website either because having shared and device and all colored didn't seem that important.
希望有帮助。
这篇关于在VS 2010中的.cu文件中没有颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!