如何更改 VS 代码设置以使用 JetBrains Mono 字体
How do I change VS Code Settings to use JetBrains Mono Font
我已经下载并安装了 JetBrains Mono 字体https://www.jetbrains.com/lp/mono/
我正在尝试设置 VS Code 以使用它。
我已将以下行添加到我的 settings.json 文件中:
// Set the font
"editor.fontFamily": "Consolas, 'Courier New', monospace", // Copied from current settings
// Turn on font ligatures
"editor.fontLigatures": true, // Override default value of false
我的问题是:我需要在 editor.fontFamily
部分中输入什么才能使用 JetBrains?
我试过了"editor.fontFamily": "JetBrains, Consolas, 'Courier New', monospace"
没有成功。
这个就够了
"editor.fontFamily": "JetBrains Mono"
如果你也想要连字
"editor.fontLigatures": true
首先,您将进入您的首选项 -> 设置 -> 文本编辑器 -> 字体
然后您可以点击并编辑您的 settings.json
How to find font settings
然后,您可以在那里编辑您的设置,如下所示。这是我的字体设置的样子(其中包括 JetBrains 的可视化演示!):
My settings
打开 VSCode 设置(代码 -> 首选项 -> 设置),然后在用户设置 JSON 文件的末尾添加:
"editor.fontFamily": "JetBrains Mono",
"editor.fontSize": 13,
"editor.fontLigatures": true
基于@Grekkq 和@Gyliph 提供的内容,这就是我的设置:
// Set the font
"editor.fontFamily": "'JetBrains Mono', Consolas, 'Courier New', monospace",
// Set the font size
"editor.fontSize": 13,
// Turn on font ligatures
"editor.fontLigatures": true,
// Set letter spacing
"editor.letterSpacing": 0.4,
// Enable smooth scrolling in the editor
"editor.smoothScrolling": true,
将 JetBrains Mono 添加到当前字体系列列表的技巧是将 'JetBrains Mono'
括在单引号中(因为字体名称中有 space)。
最简单的方法是:打开设置Ctrl+,选择Text Editor -> Font,将'JetBrains Mono'添加到字体系列。您还可以从那里更改字体粗细和大小,然后重新启动 VS Code 以查看更改
或在 settings.json 文件中,按 ctrl+shift+p 搜索 seetings.josn,然后添加这些行。
"editor.fontFamily": "JetBrains Mono", // Font Family
"editor.fontSize": 11.3, // Font Size
"editor.fontWeight": "bold", // Font Weight
"editor.fontLigatures": true, // Font ligatures
我很难在 VS Code 中更改字体,但现在每次我想更改它时它都能正常工作。要更改字体,请按照以下说明操作:
- 下载字体
- 点击刚刚下载的ttl文件,点击安装
- 关闭 VS CODE 并重新打开它。
- 进入VS Code并更改您想要的字体;例如,JetBrains Mono
诀窍是关闭并重新打开 VS 代码
#感谢 PINAKI 提供的解决方案
对于像我这样的小白尝试跟随的人:您需要先下载字体!
https://www.jetbrains.com/lp/mono/
然后解压,select所有这些,右键单击其中任何一个并选择安装。
在 VS Code settings.json(在设置中搜索字体,你会看到这个)写:
"editor.fontFamily": "JetBrains Mono",
<-- 不要忘记这个逗号
重启VSCODE
尽情享受吧。
您可能注意到 默认权重不正确,因此要更改为相同的值,例如PyCharm:
"editor.fontFamily": "JetBrainsMonoRoman-Light",
我通过转到用户安装的字体 -> 顶部的信息选项卡 -> PostScript 名称得到了这个
我已经下载并安装了 JetBrains Mono 字体https://www.jetbrains.com/lp/mono/
我正在尝试设置 VS Code 以使用它。
我已将以下行添加到我的 settings.json 文件中:
// Set the font
"editor.fontFamily": "Consolas, 'Courier New', monospace", // Copied from current settings
// Turn on font ligatures
"editor.fontLigatures": true, // Override default value of false
我的问题是:我需要在 editor.fontFamily
部分中输入什么才能使用 JetBrains?
我试过了"editor.fontFamily": "JetBrains, Consolas, 'Courier New', monospace"
没有成功。
这个就够了
"editor.fontFamily": "JetBrains Mono"
如果你也想要连字
"editor.fontLigatures": true
首先,您将进入您的首选项 -> 设置 -> 文本编辑器 -> 字体
然后您可以点击并编辑您的 settings.json
How to find font settings
然后,您可以在那里编辑您的设置,如下所示。这是我的字体设置的样子(其中包括 JetBrains 的可视化演示!):
My settings
打开 VSCode 设置(代码 -> 首选项 -> 设置),然后在用户设置 JSON 文件的末尾添加:
"editor.fontFamily": "JetBrains Mono",
"editor.fontSize": 13,
"editor.fontLigatures": true
基于@Grekkq 和@Gyliph 提供的内容,这就是我的设置:
// Set the font
"editor.fontFamily": "'JetBrains Mono', Consolas, 'Courier New', monospace",
// Set the font size
"editor.fontSize": 13,
// Turn on font ligatures
"editor.fontLigatures": true,
// Set letter spacing
"editor.letterSpacing": 0.4,
// Enable smooth scrolling in the editor
"editor.smoothScrolling": true,
将 JetBrains Mono 添加到当前字体系列列表的技巧是将 'JetBrains Mono'
括在单引号中(因为字体名称中有 space)。
最简单的方法是:打开设置Ctrl+,选择Text Editor -> Font,将'JetBrains Mono'添加到字体系列。您还可以从那里更改字体粗细和大小,然后重新启动 VS Code 以查看更改
或在 settings.json 文件中,按 ctrl+shift+p 搜索 seetings.josn,然后添加这些行。
"editor.fontFamily": "JetBrains Mono", // Font Family
"editor.fontSize": 11.3, // Font Size
"editor.fontWeight": "bold", // Font Weight
"editor.fontLigatures": true, // Font ligatures
我很难在 VS Code 中更改字体,但现在每次我想更改它时它都能正常工作。要更改字体,请按照以下说明操作:
- 下载字体
- 点击刚刚下载的ttl文件,点击安装
- 关闭 VS CODE 并重新打开它。
- 进入VS Code并更改您想要的字体;例如,JetBrains Mono
诀窍是关闭并重新打开 VS 代码
#感谢 PINAKI 提供的解决方案
对于像我这样的小白尝试跟随的人:您需要先下载字体!
https://www.jetbrains.com/lp/mono/
然后解压,select所有这些,右键单击其中任何一个并选择安装。
在 VS Code settings.json(在设置中搜索字体,你会看到这个)写:
"editor.fontFamily": "JetBrains Mono",
<-- 不要忘记这个逗号
重启VSCODE
尽情享受吧。
您可能注意到 默认权重不正确,因此要更改为相同的值,例如PyCharm:
"editor.fontFamily": "JetBrainsMonoRoman-Light",
我通过转到用户安装的字体 -> 顶部的信息选项卡 -> PostScript 名称得到了这个