Is it possible to adjust the color for a specific word in visual studio 9?

I need to use a lot of specific variables in my work (for example, T_ULONG or T_SWORD), and I would like them to appear as variables (blue or whatever). It is very unpleasant to have whole pieces of code in black and white ... I saw that there were a lot of topics for VS, but this will not solve my problem ...

Any clues? Thanks for reading anyway :)

+6
visual-studio color-scheme
source share
1 answer

Assuming you're talking about C / C ++, yes:

Create a file called usertype.dat containing your keywords (one per line) and save it in C: \ Program Files (x86) \ Microsoft Visual Studio 10.0 \ Common7 \ IDE or equivalent.

In VS, go to Tools / Options / Fonts and Colors / Text Editor, and in the List of Displayed Elements, select User Keywords. Set the colors, OK dialog and restart VS.

+8
source share

All Articles