Ubuntu18.04 replace vscode font
The font of vscode in Ubuntu 18.04 is really ugly, the space distance is extremely small, and the comment slashes are so abrupt, the look and feel is extremely bad, which affects the mood, so change to a font with better tolerance. The process is as follows: first download the font package through git
sudo git clone https://github.com/tonsky/FiraCode.git
#没有git的伙伴先通过 sudo apt install git 将git安装上
After the installation is successful, the font directory /home/user_name/.vscode/extensions/ms-vscode.cpptools-1.3.1/FiraCode/distr/ttf/
is under , after entering, double-click the font you like to install. (.vscode is a hidden folder, you need to set the folder property to "Show hidden files")
Finally, open vscode, click File --> Preferences -> Settings in the upper left corner, find font, and click Edit in settings.json,
Add the following code in it, save and restart the code, and you're done!
"editor.fontFamily": "Fira Code", //后边的引号中写上要设置的字体类型
"editor.fontSize": 16, //设置字体大小,这个不多说都明白
"editor.fontWeight": "normal", //这个设置字体粗细,可选normal,bold,"100"~"900"等,选择合适的就行
"editor.fontLigatures": true