为什么重启 PC 后 VS Code 中的 Fira Code 丢失了?

Why Fira Code in VS Code lost after restart PC?

我想在 VS Code 中使用 Fira Code 来启用字体连字。这是我在 settings.json 中的设置。请注意,我已经在 C:\Windows\Font

中安装了 Fira 代码
    "editor.formatOnSave": true,
    "editor.fontSize": 14,
    "editor.fontFamily": "Fira Code",
    "editor.fontLigatures": true,

我的 VS Code 将字体更改为 Fira Code,我可以使用 Font Ligatures。但是,每次我重新启动笔记本电脑后,VS Code 中的 Fira Code 都消失了。我需要将 Fira Code 字体复制到 C:\Windows\Font 以在 VS Code 中再次启用 Fira Code。

有人遇到过这个问题吗?如何解决?谢谢

遇到了同样的问题,this 解决方案对我有用。

  • 确保在其属性中取消阻止所有字体文件(如图here)
  • 通过点击 Install for all users 选项而不是 Install 来安装 Fira Code 字体(如图 here 所示)。