Question

I know the colours are changed in Environment > Fonts and Colors but I haven't found out which Display Item the object is.

Can someone please tell how I can colour the following code:

lblMessage.Text = "You have successfully answered my question!"

I have the string coloured pink, I would like the lblMessage purple and the .Text a light green.

For me the darker the colour the less it will "change". I won't often change object names, I'll more often change properties and am always changing strings - although I have another question about this that I'll post later.

Thanks

Was it helpful?

Solution

Go to Environment > Fonts and Colors > Display Items and change

  • Identifier
  • String

I was hoping that their is I can be more specific with the colours - if their isn't then that's an acceptable answer - just disappointing for me.

Yeah, I don't think you can do that. :)

OTHER TIPS

This is possible if you use a 3rd party addin like Visual Assist. It lets you assign different colors to classes, variables, macros and functions (among other features).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top