admin管理员组

文章数量:1594755

最终效果:


  1. 首先,你电脑要有这种字体
    项目github地址 - https://github/tonsky/FiraCode
    字体下载地址 - FiraCode_2.zip。[2020年2月13日]
    下载不了? 这个地址试试 - https://github/tonsky/FiraCode/tree/master/distr/ttf

  2. 解压、全选,右键安装就可以了
    在windows的控制面板,字体中就可以看到该字体了,安装完成。


  3. 在 Visual Studio Code 中启用

    然后,点击右上角的图标,打开 json 形式编辑的设置:

    然后修改把下面两个设置增加或替换进去即可。

    "editor.fontFamily": "Fira Code Light, Consolas, Microsoft YaHei",
    "editor.fontLigatures": true,
    

创建一个 js 文件 测试吧

x =>
{
    if (x >= 2 || x == 0)
    {
        Console.WriteLine(" >=> 衣带渐宽终不悔 ~~> 为伊消得人憔悴 ");
    }
}

thanks:

  • 《推荐几款连字字体,在代码编辑器中启用连字字体(Visual Studio Code)》 https://blog.csdn/WPwalter/article/details/101512456
  • 《vscode中修改字体,使用Fira Code》 - https://www.jianshu/p/0effae21b862
  • 《参数化设计与字体战争:从 OpenType 1.8 说起》 - https://thetype/2016/09/10968/
  • FiraCode项目: https://github/tonsky/FiraCode#download-v2–how-to-install–troubleshooting–news–updates

本文标签: 字符字体VSCodeFiraCode