Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the default github code font

Tags:

I am unhappy with the default code font of github which is Courier New. I want to change it to Monaco, which is my preferred monospace font. Is it possible to change my github code font? If yes, how?

like image 641
missingfaktor Avatar asked Sep 10 '11 14:09

missingfaktor


People also ask

What is GitHub default font?

The key figures on the homepage are specified to use the operating system's monospaced UI font, and hence will look different from user to user. The font shown in the images appears to be DejaVu Sans Mono (or Menlo). Source: github.com GitHub.

How do I set my default font?

Go to Format > Font > Font. + D to open the Font dialog box. Select the font and size you want to use. Select Default, and then select Yes.

What is the default code font?

By default, the font used for coding in VS Code is Consolas.


1 Answers

Solution for chrome:

  1. Install Stylist @ https://chrome.google.com/webstore/detail/pabfempgigicdjjlccdgnbmeggkbjdhd

  2. Install userscript @ http://userstyles.org/styles/39502/github-a-different-font-stack-for-code-listings

Enjoy!

like image 164
analogue Avatar answered Sep 18 '22 12:09

analogue