Syntax coloring of own types in Visual Studio (C++)

跟風遠走 提交于 2019-12-04 17:44:07

问题


How can I get Visual Studio to highlight my own class types? This works fine for C# but not for C++...


回答1:


For those running Visual Studio 2010 Highlighterr may fit your needs. It's also in the MSDN Visual Studio Gallery. It leverages the improved C++ IntelliSense in 2010.

It makes you set special highlighters in Environment -> Fonts and Colors for the types it detects, but overall it works quite well from what I've seen.




回答2:


you can use viusal-assist or Re-sharper

both have setting for your syntax highlightin in C# and C++

and do extra work such as make optional short key on IDE for you.

  • Develop new code faster with fewer errors.
  • Quickly understand existing code.
  • Refactor existing code making it easier to read and cheaper to maintain.
  • Eliminate time spent searching by allowing instant navigation to any file, symbol or reference.



回答3:


MSDN: Defining Keywords in Visual C++




回答4:


Install Visual Assist. IIRC, you can download and test it for 30 days.

Beware, though. It's quite addictive. Out of 20 Windows developers I have seen testing this, 18 had their management buy it. :)



来源:https://stackoverflow.com/questions/1386674/syntax-coloring-of-own-types-in-visual-studio-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!