ubuntu18.04 modify vscode font

"File - Preferences - Settings" opens the Settings page:

To simply modify the font size, you can change the Font Size to a larger size (18 on the page)

If you want to modify the font style, click "Edit in settings.json":

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

 In fact, the trouble lies in the Fira Code font, because this machine may not have it, and it needs to be downloaded:

git clone https://github.com/tonsky/FiraCode.git

 You can also download it from here: FiraCode font

After downloading, there are several ttf files in the FiraCode/distr/ttf directory:

Double-season ttf file, pop up the installation box, install it.

Restart vscode, the modification is successful.

Guess you like

Origin blog.csdn.net/whuzhang16/article/details/111996053