Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font and Color Setting for Text Editor T-SQL Variable Declaration Data Type Size

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.

like image 485
Emmanuel Avatar asked Dec 21 '10 16:12

Emmanuel


People also ask

How do I change the font size in SQL results?

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.


1 Answers

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.

like image 168
Emmanuel Avatar answered Oct 23 '22 03:10

Emmanuel