Source Code Pro My Loving Programming Font

1,227 阅读1分钟

今天钉钉群推送了一篇文章,5 of the best VS Code themes compared - an opinionated review,发现一款我认为很漂亮很适合编程的字体。截图如下:

image.png

然后 Google “programming font family”,找了两篇文章最终在“11 Best Programming Fonts”这篇中觅得。

通过反复对比字体,尤其是其特征显著的 import 的 i

image.png

Install

网上有多种安装方式,本文介绍 Mac OSX 的两种方式:

  1. brew:brew tap caskroom/fonts && brew cask install font-source-code-pro 来自 issue Install source code pro font with brew #218
  2. 手动下载:Source Pro Code 官方 GitHub 下载

download Source Code Pro

第一种方式没试过,本文采取第二种。因为同样安全简单且操作透明。

Use

VSCode 配置字体很简单,先打开 Preferences - Settings,在“Editor: Font Family”输入“Source Code Pro”即可。

或打开 settings.json

how to open settings.json

输入

"editor.fontFamily": "Source Code Pro"

Effect

source-code-pro-effect-in-vscode