如何在 Visual Studio 代码中使用自定义字体 [英] How to use custom font in visual studio code
本文介绍了如何在 Visual Studio 代码中使用自定义字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这与其说是编码问题,不如说是关于 Visual Studio 代码编辑器.我想做的是在编辑器中使用source code pro,但我不知道将字体设置更改为什么.谢谢!
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 文件(File > Preferences > User Settings)中,像这样覆盖 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屋!
查看全文