Reputation: 41347
I would like to have Visual Studio highlight the names of my own classes in the text editor.
I have selected a color under User Types
in Options > Fonts & Colors
-- but strangely, this only works for Visual C# but not Visual C++.
Any ideas what's going on?
EDIT: I received some great tips regarding 3rd party tools in response to my previous question, but no answer as to why Visual Studio wouldn't provide this capability, or how to properly set it up.
Upvotes: 2
Views: 3617
Reputation: 41347
I gather that the answer is that Visual Studio simply doesn't provide comprehensive syntax highlighting for C++. Pity.
Upvotes: 1
Reputation: 137118
Have you looked at Tools > Options > Environment > Fonts and Colors?
There's the following "Display items:"
User Keywords
User Types
User Types (Delegates)
User Types (Enums)
User Types (Interfaces)
User Types (Value Types)
This MSDN page details how to define the keywords. Basically create a file called usertype.dat
with each keyword on a separate line, place it in the same directory as devenv.exe
then restart Visual Studio.
Disclaimer: I haven't tried this in the latest versions of Visual Studio myself.
Upvotes: 3