近日,JetBrains 公司正式推出了一款专为编程设计的新字体:JetBrains Mono,旨在提升开发者在长时间编码中的阅读舒适度和视觉体验,迅速成为技术社区热议的话题。

JetBrains Mono 官方介绍页面:

https://www.jetbrains.com/lp/mono/

从官网展示来看,该字体设计清晰,风格现代:
https://img/20200120214410.png
https://img/20200120214618.png
https://img/20200120214720.png

为了更直观地感受其优化,可以对比 JetBrains Mono 与 Windows 常用等宽字体 Consolas 在连字符(l)、零(0)、冒号(:
)等易混淆字符上的设计区别,前者具有更高的可辨识度。
https://img/20200120215003.png

自 IntelliJ IDEA 2019.3 及同期其他 JetBrains IDE 版本开始,JetBrains Mono 已作为内置字体提供。
https://img/20200120214751.png

启用方法:

打开 Preferences/Settings。

进入 Editor > Font。

在字体列表中选择 JetBrains Mono。
https://img/20200120222659.png
https://img/20200120222919.png

独立安装:
如果你的 IDE 版本较低或希望在别的编辑器(如 VS Code)中使用,可以访问官网下载并手动安装。

https://www.jetbrains.com/lp/mono/#how-to-install

尝试一款精心为代码阅读优化的字体,或许是给你的开发环境带来新鲜感和舒适度提升的一个简单而有效的方式。