Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change fonts in VSCode?

Everywhere it seems to say that I just simply need to change 'editor.fontFamily'. But how? This is the default value for it:

  "editor.fontFamily": "'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",

What do all those multiple entries mean ( like monospace with and without quotes ) and how would I change it to 'DejaVu' fonts for example?

like image 989
dawid Avatar asked Mar 07 '23 07:03

dawid


1 Answers

VScode does its styling via CSS. This is knows as a "fallback group". If one font is not available, it automatically uses the next one in line, from left to right.

To do what you asked for:

"editor.fontFamily": "'DejaVu Mono', 'monospace'"

If that doesn't work, look up the correct name of the font and put in in there. The quotes are used mainly with names that have spaces in them.

like image 180
herrbischoff Avatar answered Mar 18 '23 01:03

herrbischoff