Scott Hanselman

Changing your colors in Visual Studio.NET - Black versus White

September 7, '06 Comments [31] Posted in Musings
Sponsored By

UPDATE: http://studiostyles.info/ for a great growing community of Visual Studio Styles and Themes. You can create, import and export themes in your browser!

VsbeforefontsI run my Visual Studio.NET with Consolas 15pt and have since I discovered Consolas. I like to run at a big(ger) font for a few reasons. First, it looks best at 15pt. 16pt? Crap. 13pt? Please. I also run it with a white (paper-like) background and the default colors. I also tend to run FullScreen with SHIFT-ALT-ENTER.

More and more though I hear that folks are vibing on the black background again. Personally, I've always found the black blackground folks to be a little creepy - just a little too black t-shirt, if you know what I mean.

Lately, though, it seems, that folks I respect have been trying the black background thing. A while back Atwood blogged about this.

There's a lovely theme for Mac folks running TextMate using the Monaco Font by this fellow at Vibrant Ink.

Folks with "TextMate Envy" can get a free Monaco Font for Windows here. Since that was so easy to find, I figured I'd try black background world also. But not just "switch to black background," no, no, that'd be too simplistic. I need to pump up the color on the foreground as well.

Vsafterfontsthumb

Now, that doesn't look too bad. Here's what I did from Tools|Options inside Visual Studio.NET

  • Changed the font to Monaco in Environment|Fonts and Colors under "Text Editor"
  • Changed:
    • Plain Text - White
    • Line Numbers - Silver
    • Comments - 213,0,213 (Purpley)
    • Identifier - 253,223,57 (Mustardy)
    • Keyword - 244,122,0 (Orangey)
    • Operator - White
    • String - Lime
    • UserTypes - 179,179,0 (Mustardy)

I think I'll leave it like this for a while and see what happens.

Feel free to post links to a screenshot of your colors and fonts in your editor in the comments. Put the link to your screenshot in the Home Page field in the comment and your name in the comments will automatically turn into a hyperlink.

Now, gray background people? Well, they're just freaks. ;)

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. I am a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by ORCS Web
Thursday, September 07, 2006 6:55:36 AM UTC
Have you seen this from Dave Reed? :)
"Join the Dark Side of Visual Studio"
http://weblogs.asp.net/infinitiesloop/archive/2006/08/06/Join-the-Dark-Side-of-Visual-Studio.aspx
Thursday, September 07, 2006 7:27:54 AM UTC
That Monaco font is really not good IMO. It's too whimsical and kinda.. Comic Sans-y.

In my research into white vs. black backgrounds I found that the key thing is *contrast*, as in you want some contrast, but not too much of it. Avoid pure blacks on pure whites.

My current scheme is more or less here

http://www.codinghorror.com/blog/archives/000417.html

Although I've succumbed to the inevitable ClearType now.
Thursday, September 07, 2006 9:45:27 AM UTC
What about this blue Turno Pascal like Visual Studio?
m.
Thursday, September 07, 2006 11:26:08 AM UTC
I just can't stand the whole black background; makes my eyes hurt and weep in just a few minutes. So I guess that makes me a white backgrounf kind of guy.

That said, I never run with the default colors in VS, either; I rather have it a little bit more costumized to bring out a few things.
Thursday, September 07, 2006 11:36:55 AM UTC
My old glasses were a bit off, prescription-wise, and scratched up, too. As a result, I was getting frequent eye strain. At first, I thought it was due to the huge, bright screen on my new laptop, so I switched VS.NET over to use a black background. Then I installed a bunch of beta crap, and now I can't change it again. I rather like it...except for the fact that in XML modes, quotes are also black. :p
Thursday, September 07, 2006 11:51:35 AM UTC
Borland's Turbo C IDE colours where always a favorite - nice and easy on the eye and also providing the right amount of contrast...example here;

Yellow/White/Green on blue rocks!
Thursday, September 07, 2006 12:31:26 PM UTC
Thanks, Scott, really cool looking and eyes keeping VS theme
Thursday, September 07, 2006 1:23:46 PM UTC
I think Craig hit the nail.
For the last 6 months I've been perceiving an increasing rate of eyelash fall, with all its unwanted side effects such as eye pricking, etc. I blame it on the 10+ hours/day on the computer. Although I cannot prove it scientifically, I suspect an inappropriate combination of radiation/brightness/contrast/background colors/font colors/font types and sizes are the culprit of my lash fall and eye strain. I was seen by an ophtalmologist and he prescribed a couple of meds and glasses. Too soon to tell if they're effective. For the time being my lash fall and eye strain continue. Monitors I work on? 19" Samsung SyncMaster 997MB's.

What measures have you taken guys to protect your eyes from monitor glare/radiation ?

Thanks,
Thursday, September 07, 2006 1:38:18 PM UTC
I've been using a black background for all my IDE's for about 5 years now. I find it very easy on the eye strain factor.

I also have all my Windows "appearance" colors shaded downward to heavier grays and and have eliminated almost all large white areas (for the programs that support color changing).

It's also helpful to have ambient light behind your monitors (desk lamp), to help make your visual perspective more 3D. If your room light source is behind you, shining on your monitors, than it makes your vision very "flat" and contributes to more eye strain.

Note: you'll probably find a black background is difficult to read when doing a standup presentation with a Projector.

Good luck.

Thursday, September 07, 2006 2:58:45 PM UTC
I'm in the Borland IDE style camp. I've been changing my IDE's to this for years. Heck, I'm so old school, I even change my font to FIXEDSYS. :)

Thursday, September 07, 2006 3:42:50 PM UTC
Add me to the list of those still in love with the Borland color schemes. Before Delphi8 forced us to migrate to Visual Studio, I was a big fan of the Twilight scheme, so I did my best to re-create it in VS.
Thursday, September 07, 2006 3:49:52 PM UTC
Hey, Scott, by the way, why don't you export your font settings from VS and share that? sure would save those that want to try out your style some time :)
Thursday, September 07, 2006 4:24:49 PM UTC
Yes :) Finally the dark background gains some ground. I blogged about this a while ago. You can download my theme for VS2005 as well as VS2003. Click my name and look at the August archives (sorry, the full url didnt fit). Or go here:

http://weblogs.asp.net/infinitiesloop/archive/2006/08/06/Join-the-Dark-Side-of-Visual-Studio.aspx
Thursday, September 07, 2006 7:20:17 PM UTC
I have tried black background a few times but always returned to visual studios default theme.

But I tried again and I think I like my result this time so I will try it out for a few days (click my name link to view a screenshot).
Thursday, September 07, 2006 10:22:18 PM UTC
This is my current settings
Thursday, September 07, 2006 11:39:04 PM UTC
I love black backgrounds. Much easier on the eyes once you are used to it.

Scott, you should change the background color on Notepad2 as well. I did and never looked back.
Eric Lau
Friday, September 08, 2006 5:39:13 AM UTC
Black backgrounds tend to cause halation for me much worse than white backgrounds. Partly, I think, because I wear glasses. But as long as the contrast is set appropriately, they are equally readable.

We need to have some sort of "hotornot" website for IDE color schemes, along with links to download the exported VS2005 settings for that scheme.
Friday, September 08, 2006 8:35:15 AM UTC
Never thought I would even think on these lines. Now you have me experimenting with different colors. Hmmm. Productive use of company time :) LOL. Love the black theme though. Thanks.
Friday, September 08, 2006 11:27:03 AM UTC
Jeff, I like that idea a lot. I've been searching for good color schemes a while. I think the one Scott suggested is not sophisticated enough.
Friday, September 08, 2006 1:51:53 PM UTC
Jeff, that sounds like a pretty cool idea, I'd say. I'd certainly like to see it, and contribute my own couple of schemes!
Friday, September 08, 2006 4:29:10 PM UTC
Vibrant Ink for VS 2005:
http://softiesonrails.com/articles/2006/03/02/i-wish-i-was-cool
SM
Friday, September 08, 2006 9:31:09 PM UTC
We had a study performed some years ago for our AutoCAD users. Historically most AutoCAD users have used a black background and some white but we found that most users appreciated a grayish background because that didn't make the contrast agains the walls and other stuff around the monitor too big. Most users continued using a gray like background color and it might be a good idea for coders as well. I'll give it a try. Then of course the contrast need to be good for the text so good colors are required to find.
Saturday, September 09, 2006 11:50:08 AM UTC
The white background is an attempt to mimic a piece of paper, which does not take into account the fundamental difference of emmited light versus reflected light. Movie credits always use a black background, as do most lighted signs. It is simply much easier on the eye to have the vast majority of the screenspace not lit.
Saturday, September 09, 2006 3:04:08 PM UTC
Aaron can you upload your settings please?

Thanks
dcave
Sunday, September 10, 2006 3:54:49 AM UTC
I've always gone with the black background... far more comfortable when you're at the screen 12 hours a day. Also I make sure that literal string and magic numbers are in bold red - just so they stick out like a sore thumb. Don't want too many of those in my code if I can help it.
Sunday, September 10, 2006 6:15:51 AM UTC
Hey dcave,

Try these settings (let me know if it doesn't work).

http://www.ragingit.com/temp/FontsAndColoursOnly.zip

Cheers,

Aaron
Aaron
Monday, September 11, 2006 3:48:45 PM UTC
I'm one of the gray background people... my eyes have been glad for some time now.
Tuesday, September 12, 2006 4:07:16 PM UTC
My Autumn colors for vs2k5 / resharper. Errors show up red background with black text to offset them. More of what you see in everyday coding is in the bottom few lines.
Tuesday, September 12, 2006 4:09:00 PM UTC
text input field max length for url exceeded... here's full url.

http://photos1.blogger.com/blogger/3631/2314/1600/Resharper%20Autumn.png
Wednesday, September 13, 2006 2:33:26 PM UTC
I'm being treated for an eye issue that requires keeping one eye dialated for a few weeks. Switching to the black background is MUCH better for me right now. However, I can't find a way to change the intellisense popups to match, so they come on screen like a blinding white beacon. Does anyone know if you can change them too>
Jake Stevenson
Tuesday, September 19, 2006 5:00:18 PM UTC
We set up an "Is your IDE Hot or Not?" site here--

http://idehotornot.ning.com/

Please contribute! I'm setting up the Vibrant Ink theme now for download.
Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.