简体   繁体   English

在Visual C ++中关闭突出显示“event”关键字

[英]Switch off highlighting “event” keyword in Visual C++

I have question: How to switch off highlight keyword "event" in Visual C++ 2010? 我有疑问:如何在Visual C ++ 2010中关闭突出显示关键字“事件”? I don't use .net , so for me it isn't keyword, and I would call it one variable "event". 我不使用.net,所以对我来说它不是关键字,我称之为变量“event”。

This is a side-effect of the C++/CLI language supported by the IDE. 这是IDE支持的C ++ / CLI语言的副作用。 Where event is a keyword. 其中event是关键字。 There are others, like gcnew, generic, array, etc. Syntax highlighting is based on the file name extension and C++/CLI also uses .cpp. 还有其他一些,如gcnew,泛型,数组等。语法突出显示基于文件扩展名,C ++ / CLI也使用.cpp。

I can't think of an easy fix. 我想不出一个容易解决的问题。 I'd recommend you post feedback to connect.microsoft.com 我建议您将反馈发布到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. 这被硬编码为Visual Studio的C ++编辑器中的关键字,无法更改。 It's the equivalent of saying "Please stop highlighting class" 这相当于说“请停止突出课程”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM