I can't find the VS2010 Tools | Options... | Environment | Fonts and Colors Text Editor setting for controlling the foreground color of the numeric literal that defines the size of T-SQL variable datatypes like varchar, char.
My problem is that my font and color settings (which I donwloaded from a blog post - maybe Scott Haselman's, not sure) has a black background for the text editor and black foreground for the numeric literal. So when I type DECLARE @myvar varchar(100)
, I cannot see the "100".
Anyone know what setting I should be looking for? I've been through the list several times trying various settings.
To change font color, size, and style in the EditorClick Options on the Tools menu. Click Environment, and then click Fonts and Colors. In the Show settings for list, select Text Editor. Change the font, size, display item, foreground and background colors.
I found the solution. I was looking for the "Number" display item for "Text Editor".
It's weird though, the setting was for a "Default" foreground color which showed as White in the preview window. The actual color was Black. Also, when editing C#, I don't have this problem (this was the first time I used VS2010 for editing SQL - I normally use SSMS).
I think there is a bug in VS2010 as it didn't use the Default color.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With