Syntax highlighting in addition to the look comfortable, you can use F11 to find functions, variable definitions, hitting the function will also have a corresponding hint.
The following is a set of code highlighting.
In the Helloworldcuda.cu file above, the Cuda C + + keyword __global__ and so on are not highlighted, and there is a stroke curve. The following syntax highlighting of Cuda C + + keywords and functions, configuring visual Assistx function highlighting, code hinting and other functions.
The following is a set of code highlighting. A total of three settings
1. C + + keyword highlighting in. cu files
This setting is for VS2010 to edit the. cu file, highlighting the C + + syntax in the. cu file. The other vs2012 and vs2013 are the same.
Setup method: Click on the VS2010 menu: "tools| options...| Text editor| File Extension ", in this interface:" Editor "drop-down box select" Microsoft Visual C + + "in the" Extension "text box to enter. CU Click on the" Add "button and repeat work to add the. Cuh to the VC + + type, click the OK button. Close all. cu files and open them, and the. cu file C + + keyword is highlighted. If not, restart VS2010. But Cuda's keyword is still black, the next step is to highlight the Cuda key self.
Highlight settings for Cuda code