- 首先需要下载 FiraCode 字体 ,打开控制面板找到字体,然后安装FiraCode 字体
- 打开设置页⾯,搜索 font,找到settings.json,进入添加下方代码即可
{
// 字体配置
"editor.fontFamily": "Fira Code", //后边的引号中写上要设置的字体类型,个⼈⽐较喜欢Fira Code
"editor.fontLigatures": true, //这个控制是否启⽤字体连字,true启⽤,false不启⽤,这⾥选择启⽤
"editor.fontSize": 14, //设置字体⼤⼩,这个不多说都明⽩
"editor.fontWeight": "normal",
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
} //这个设置字体粗细,可选normal,bold,"100"~"900"等,选择合适的就⾏
}