如何在VS Code编辑器中指定粗体? [英] How to specify bold font in VS Code editor?

查看:1325
本文介绍了如何在VS Code编辑器中指定粗体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在VS Code的 settings.json 中指定粗体字体?例如,我安装了 Envy Code R Envy Code R Bold (在Windows字体查看器中显示的确切名称)在我的Windows机器上,而

How to specify a bold font in VS Code's settings.json? For example, I have Envy Code R and Envy Code R Bold (exact names shown in windows' font viewer) installed on my windows machine, and while

"editor.fontFamily": "Envy Code R"

设置正常,

"editor.fontFamily": "Envy Code R Bold"

不起作用(使用了备用字体

doesn't work (a fallback font is used instead).

这可能吗?没有其他字体设置,例如 fontWeight fontStyle 。我也尝试用粗体字指定其他字体而无济于事。 VS代码 0.10.11 此处。

Is that possible to do at all? There are no any other font settings like fontWeight or fontStyle. I also tried specifying other fonts with bold variants to no avail. VS Code 0.10.11 here.

推荐答案

在您的settings.json中.vscode添加此行:

In your settings.json .vscode add this line:

"editor.fontWeight": "bold"

这篇关于如何在VS Code编辑器中指定粗体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆