Home  >  Article  >  Development Tools  >  How to modify the font in vscode?

How to modify the font in vscode?

青灯夜游
青灯夜游Original
2019-12-23 16:00:4225477browse

How to modify the font in vscode?

The default font of vscode doesn’t look good. I want to change the font. Here’s how to change the font:

1. Open the settings page, search for font, and modify the corresponding Just configure it.

How to modify the font in vscode?

Add corresponding font settings in user settings

How to modify the font in vscode?

The following attributes in the settings are related to fonts:

// 控制字体系列。
  "editor.fontFamily": "Consolas, 'Courier New', monospace",
  // 启用字体连字
  "editor.fontLigatures": false,
  // 以像素为单位控制字号。
  "editor.fontSize": 14,
  // 控制字体粗细。
  "editor.fontWeight": "normal",

Then, add the corresponding settings in the user settings on the right (remember to separate them with a comma before adding):

"editor.fontFamily": "Fira Code",//后边的引号中写上要设置的字体类型,个人比较喜欢Fira Code
"editor.fontLigatures": true,//这个控制是否启用字体连字,true启用,false不启用,这里选择启用
  "editor.fontSize": 14,//设置字体大小,这个不多说都明白
"editor.fontWeight": "normal",//这个设置字体粗细,可选normal,bold,"100"~"900"等,选择合适的就行

Finally save, and the font will be applied successfully.

PS: If you want to change the font, at least the font must be installed on the computer, otherwise the setting will be useless.

The above is the detailed content of How to modify the font in vscode?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How does vscode use svn?Next article:How does vscode use svn?