Visual Studio 代码编辑器中使用哪种字体以及如何更改字体? [英] Which font is used in Visual Studio Code Editor and how to change fonts?

查看:62
本文介绍了Visual Studio 代码编辑器中使用哪种字体以及如何更改字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了最近使用的 Visual Studio Code 编辑器(https://code.visualstudio.com/)在构建时宣布.我在 Windows 和 Ubuntu 上尝试过.我可以看到 Visual Studio 代码编辑器的默认字体不是我的代码编辑器喜欢的控制台.

I tried Visual Studio Code editor(https://code.visualstudio.com/) which is recently announced at build. I tried it on Windows and Ubuntu. I can see that default font of Visual Studio Code Editor is not consolas which prefer on my code editors.

那么在所有环境(Ubuntu、MAC OS 和 Windows)中 Visual Studio Code 编辑器的默认字体是什么?我该如何更改它?

So which is default font of Visual Studio Code Editor in All the environments(Ubuntu, MAC OS and windows)? And how can I change it?

推荐答案

转到 Preferences > User Settings.(或者,Ctrl + ,/Cmd + , 在 macOS 上)

Go to Preferences > User Settings. (Alternatively, Ctrl + , / Cmd + , on macOS)

然后您可以在 JSON 对象中输入您想要覆盖的任何设置.用户设置是针对每个用户的.您还可以配置工作区设置,这些设置适用于您当前正在处理的项目.

Then you can type inside the JSON object any settings you want to override. User settings are per user. You can also configure workspace settings, which are for the project that you are currently working on.

这是一个例子:

// Controls the font family.
"editor.fontFamily": "Consolas",

// Controls the font size.
"editor.fontSize": 13

<小时>

有用的链接:


Useful links:

这篇关于Visual Studio 代码编辑器中使用哪种字体以及如何更改字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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