views:

80

answers:

1

Hi, I have to use a lot of specific variables at my work (like T_ULONG or T_SWORD) and I'd like them to be displayed as variables (blue color or whatever). It's quite annoying to have whole pieces of code in black and white ... I saw that there were a lot of themes for VS, but these won't solve my problem...

Any clues ? Thanks for reading anyway :)

+6  A: 

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

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

In VS, go Tools / Options / Fonts and Colors / Text Editor and in the Display Items list select User Keywords. Set your colours, OK the dialog, and restart VS.

RichieHindle
Thanks a lot for this quick and precise answer ! You just saved me hours of eyestrain :D
gramm
My pleasure! (I see you're new to Stack Overflow... the correct etiquette at this point is to upvote and accept the answer, by clicking the up arrow and the tick on the left-hand side of the answer.)
RichieHindle
Wow, didn't realize that was possible.
JaredPar