如何在Visual Studio代码中使用自定义字体 [英] How to use custom font in visual studio code
本文介绍了如何在Visual Studio代码中使用自定义字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
与其说是关于Visual Studio代码编辑器,还不如说是一个编码问题.我想做的是在编辑器中使用源代码专业版,但是我不知道将字体设置更改为什么.谢谢!
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!
推荐答案
如有必要,请先在计算机上安装字体.然后,在您的用户设置JSON文件(文件>首选项>用户设置)中,像这样覆盖editor.fontFamily
:
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"
}
如果VSCode在首次安装字体时已经打开,则可能需要重新启动.
You may need to restart VSCode if it was already open when the font was first installed.
这篇关于如何在Visual Studio代码中使用自定义字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文