itgoyo / 500Days-Of-Github

⭐ 瞎JB折腾Mac/Linux/Windows过程中遇到的所有问题和解决方式 ⭐
https://itgoyo.github.io/500Days-Of-Github
138 stars 13 forks source link

VSCode 启动Fira Code字体 #257

Open itgoyo opened 3 years ago

itgoyo commented 3 years ago

设置中的下面几个属性与字体有关:

// 控制字体系列。
  "editor.fontFamily": "Consolas, 'Courier New', monospace",

  // 启用字体连字
  "editor.fontLigatures": false,

  // 以像素为单位控制字号。
  "editor.fontSize": 14,

  // 控制字体粗细。
  "editor.fontWeight": "normal",

然后,在右侧的用户设置中添加对应设置 (记得在添加之前先加个逗号分隔):

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

然后保存,字体就应用成功了。 PS: 要想换字体,最起码电脑上得安装上该字体,不然设置了也没有用。 附上 Fira Code 字体的安装: 在 https://github.com/tonsky/FiraCode 下载字体,在 readmine.md