How do I enable syntax highlighting of CUDA .cu files in Visual Studio 2010?
问题 When I edit a .cu file in Microsoft Visual Studio 2010, the editor treats it as a regular text file (there are no colors on keywords such as int , float etc. Closing brackets are not highlighted). How do I enable syntax highlighting of .cu files in Visual Studio, so that editing .cu files is like editing regular C / C++ files? 回答1: Adding '.cu' under c++ extension in visual studio settings would enable syntax highlighting for c++ keywords only. EDIT: It in Tools -> Options -> Text Editor ->