简体   繁体   English

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

[英]Why Fira Code in VS Code lost after restart PC?

I want to use Fira Code in VS Code to enable the Font Ligatures.我想在 VS Code 中使用 Fira Code 来启用字体连字。 This is my settings in settings.json.这是我在 settings.json 中的设置。 Note that I already installed Fira Code in C:\Windows\Font请注意,我已经在 C:\Windows\Font 中安装了 Fira Code

    "editor.formatOnSave": true,
    "editor.fontSize": 14,
    "editor.fontFamily": "Fira Code",
    "editor.fontLigatures": true,

My VS Code change the font to Fira Code and I can use Font Ligatures.我的 VS Code 将字体更改为 Fira Code,我可以使用 Font Ligatures。 However, after every time I restart my laptop, then the Fira Code in VS Code is gone.但是,每次我重新启动笔记本电脑后,VS Code 中的 Fira Code 就消失了。 I need to copy Fira Code font to C:\Windows\Font to enable Fira Code again in VS Code.我需要将 Fira Code 字体复制到 C:\Windows\Font 以在 VS Code 中再次启用 Fira Code。

Is there anyone have this issue?有人有这个问题吗? How to fix it?如何解决? Thanks.谢谢。

Had the same problem and this solution worked for me.有同样的问题, 这个解决方案对我有用。

  • Make sure to unblock all the font files in their properties (as shown here )确保取消阻止其属性中的所有字体文件(如此处所示
  • Install Fira Code fonts by clicking on Install for all users option instead of Install (as shown here ).通过单击为所有用户安装选项而不是安装来安装 Fira 代码 fonts(如此处所示)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM