代码里面有中文吗?

=>

有没有一款严格等宽字体, 实现 单个中文字符宽度 = 两个英文字母宽度 的字体呢?

不要错过 Iosevka.

Iosevka 1:2

无衬线 | 板状衬线、单色 | 准比例的字体系列, 用于代码 终端。

image

镜像地址: https://mirrors.tuna.tsinghua.edu.cn/github-release/be5invis/Iosevka/

版本

https://github.com/be5invis/Iosevka/blob/main/doc/stylistic-sets.md

个人推荐: ss07

tt

  • ttf - TrueType字体文件格式
  • ttc - TrueType字体集文件格式

个人推荐: ttc

术语

  • gothic - 引号为全宽
  • ui - 引号为窄的
  • mono - 破折号为全宽
  • term - 破折号为半宽
  • fixed - 不连字、且破折号为半宽

个人推荐: null

综上 ttc-iosevka-ss07-17.1.0.zip 比较合适

windows安装

打开随便按照一款即可.

image

Code 配置:

{
    "editor.fontFamily": "'Iosevka SS07', 'Microsoft Yahei', Consolas, 'Courier New', monospace"
}