Switch off highlighting "event" keyword in Visual C++
I have question: How to switch off highlight keyword "event" in Visual C++ 2010? I don't use .net , so for me it isn't keyword, and I 开发者_开发问答would call it one variable "event".
This is a side-effect of the C++/CLI language supported by the IDE. Where event is a keyword. There are others, like gcnew, generic, array, etc. Syntax highlighting is based on the file name extension and C++/CLI also uses .cpp.
I can't think of an easy fix. I'd recommend you post feedback to connect.microsoft.com
Unfortunately there is no way to do this. This is hard coded to be a keyword in Visual Studio's C++ editor and cannot be changed. It's the equivalent of saying "Please stop highlighting class"
精彩评论