Visual Studio C ++ how to change text color for "nullptr"

This distracts me from keywords such as class for while in bright blue, but also have a null character in bright blue. He draws attention to the word "nullptr". Is there a way to override VS coloration for just that word?

I am currently using #define null nullptr, which is a workaround, at least for my own code.

+3


source to share


1 answer


Visual Studio does not allow you to override the keyword coloring function. There is no direct path! However, this is possible by writing your own syntax coloring plugin.

Find more information here: Coloring Syntax (Managed Package Framework)



You can filter the keyword nullptr

in ScanTokenAndProvideInfoAboutIt

().

0


source







All Articles