Ubuntu系统升级到18.10以后,使用VSCODE发现空格间距极小,很难分辨出此处还有空格,但是VSCODE没有自定义空格距离的设置,顾通过更换字体来实现空格距离的调整。
默认字体的空格
1. 在ubuntu下,可以通过`sudo apt install fonts-firacode`
[参考](https://github.com/tonsky/FiraCode/wiki/Linux-instructions#installing-with-a-package-manager)
在window下:下载字体文件https://github.com/tonsky/FiraCode#download-v1206–how-to-install–troubleshooting–news–updates
解压压缩文件并打开ttf文件夹,双击安装字体文件,安装完所有的字体文件
2. 打开VSCODE的settings.json文件
3. 注释掉原来的editor.fontFamily配置行,注释是为了后面恢复方便
4. 添加字体文件配置
```
// 以下两行必须
"editor.fontFamily":"'Fira Code'",
"editor.fontLigatures":true,
//下面四行分别设置不同粗细的字体,选择一种
// "editor.fontWeight": "300",// Light
// "editor.fontWeight": "400", // Regular
"editor.fontWeight":"500",// Medium
// "editor.fontWeight": "600", // Bold
```
保存/重启完事
Enjoy!!!
## 另外Fira Code挺好看的
参考[介绍](https://www.jianshu.com/p/266b4fa2c446)