This isn't so much a coding question as it is about the visual studio code editor. What I want to do is use source code pro in the editor, but I don't know what to change the font setting to. Thanks!
go to https://fonts.google.com. select all the fonts you want to use by clicking on the plus button with "select this style". then, at the right side of the screen you can "use on web" click on import. copy the @import line and paste it into your css.
First install the font on your machine if necessary. Then, in your user settings JSON file (File > Preferences > User Settings), override editor.fontFamily
like so:
// Place your settings in this file to overwrite the default settings { "editor.fontFamily": "Source Code Pro" }
You may need to restart VSCode if it was already open when the font was first installed.
As a follow up to Nacimota's answer, to install custom fonts (using Windows 10 the following example) go through the tutorial here.
For me it was a matter of searching for "fonts" from my task bar then clicking the top result. From there I dragged all the files in the "target/TTF" directory, that is generated from following the Source Code Pro tutorial.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With