MKANET
MKANET

Reputation: 653

C# Syntax Highlighting for System Types, not User Types

I'm able to change the font color for User Types. However, I can't find where to change the font color for User Types I didn't create; such as, of type "string". Currently, my text editor displays these items using the same color as C# keywords (blue).

-Michael

Upvotes: 1

Views: 155

Answers (1)

erikkallen
erikkallen

Reputation: 34391

string is a keyword, so I don't think you can change it to be colored as something else. That keyword happens to be an alias for the type System.String, but it is still a keyword. If it is possible to change it, would you like var to be coded differently if it refers to a built-in type as opposed to a user-defined type. And what is a system type? Any type defined in mscorlib?

Upvotes: 1

Related Questions