以 windows 系统环境为例。

1、安装字体

image-20230220141328700

  • 进入 ttf 文件夹,全选文件,然后右键选择安装。

image-20230220142009644

2、配置VSCode

  • 进入设置页面,依次选择 字体在 settinfs.json 中编辑

image-20230220142144058

  • 将下面两行配置粘贴到该文件并保存即可。
1
2
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": "'cv01', 'cv02', 'ss05', 'ss03'",
  • 如下图所示:

image-20230220142355987-1677756900546-10