6

【vscode高级玩家】设置酷炫字体Fira Code

 1 year ago
source link: https://www.msy.plus/2021/12/20/vscode-font-fira-code/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

【vscode高级玩家】设置酷炫字体Fira Code

发表于2021-12-20更新于2023-05-04字数统计794阅读次数654阅读次数136
fira-code.png

Fira Code字体是一种适用于编程的等宽字体。使用它可以减少我们在编程时处理逻辑标记的脑力消耗。

Fira Code字体的作者认为开发者们在编程时使用的->,>=,:=,===这些字体其实是一个单一的逻辑标记,虽然它们只使用了两到三个字符,但时我们在阅读的时候一九要花费一部分脑力去阅读,将多个字符理解为一个逻辑字符。理想情况下所有的编程语言的操作符都可以设计为Unicode符号,不过目前并不是这样。

Fira Code字体时一种免费的等宽字体,其中包含用于编程中逻辑标记的连体,它只是字体的一种呈现特征,底层的代码一九与ascii兼容,这有助于更快阅读和理解代码,对于频繁的序列,比如..//连字体可以帮我们纠正字体之间的间距。

直接看效果

image

实际运用效果

image

step1 下载字体文件

下载字体文件 或者前往github下载

然后根据你的需要安装字体文件

step2 在vscode中开启

参考如下内容

"editor.fontSize": 16,
"editor.lineHeight": 22,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,

step3 重启vscode查看效果

关于vscode的所有内容看这里

------ 本文结束,感谢您的阅读 ------
Share to:
请我喝杯咖啡~

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK