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: