Consolas for MSDN Code Samples

For some reason, Microsoft recently decided to use their ancient Courier font for code sample on MSDN. Besides being plain ugly, it doesn’t play well with anti-aliasing technologies like ClearType:


If you use Firefox, however, it is possible to apply personal style sheets to web sites. The easiest way to accomplish this is through the Stylish extension. After installing Stylish, visit and create a new style as shown below:


Give your new style a descriptive name and paste the following style sheet:

@namespace url(;

@-moz-document domain("") 
    font-family: Consolas !important;

The result, in my opinion, is much easier on the eyes:



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s