打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Ubuntu VSCode设置终端字体(编辑器字体)

哇,那个VSCode的终端好丑,一定要整理一下才可以。

转到这个目录

cd /usr/share/fonts/truetype/

下载我们的字体

sudo git clone https://github.com/abertsch/Menlo-for-Powerline.git

刷新字体

sudo fc-cache -f -v

回到  Vs Code的用户设置.json  中加入以下代码

"terminal.integrated.fontFamily": "Menlo for Powerline",

或者

把以前的字删除

Menlo for Powerline

复制这个进去

重启VSCode就好了

但是这个还不是最好看的字体

git clone https://github.com/cstrap/monaco-fontcd monaco-font./install-font-ubuntu.sh [url]

接下来执行这个命令,注意最后的[Url]

https://github.com/todylu/monaco.ttf/blob/master/monaco.ttf?raw=true

用这个做替换

git clone https://github.com/cstrap/monaco-fontcd monaco-font./install-font-ubuntu.sh https://github.com/todylu/monaco.ttf/blob/master/monaco.ttf?raw=true

如果偷懒就执行这个

http://jorrel.blogspot.it/2007/11/monaco-on-ubuntu.html => http://jorrel.googlepages.com/Monaco_Linux.ttfhttp://www.gringod.com/ => http://www.gringod.com/wp-upload/software/Fonts/Monaco_Linux.ttfhttps://gist.github.com/epegzz/1634235#file-monaco_linux-powerline-ttf => https://gist.github.com/epegzz/1634235/raw/4691e901750591f9cab0b4ae8b7c0731ebf28cce/Monaco_Linux-Powerline.ttfhttps://github.com/todylu/monaco.ttf => https://github.com/todylu/monaco.ttf/blob/master/monaco.ttf?raw=true

如果URL失效,可以使用这些替换

重新设置

是不是很可爱

这个是安装字体成功的样子

#!/bin/bash
URL=$1FILENAME=${URL##*/}FONT_DIR=/usr/share/fonts/truetype/custom/
echo $FILENAMEecho $FONT_DIR
echo "Start install"sudo mkdir -p $FONT_DIR
echo "Downloading font"wget -c $URL
echo "Installing font"sudo mv $FILENAME $FONT_DIR
echo "Updating font cache"sudo fc-cache -f -v
echo "Enjoy"

其实就是执行了这个脚本

我缺少一个笔记本:

https://www.typora.io/#linux

安装一下Typora

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAEwget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
sudo add-apt-repository 'deb https://typora.io/linux ./'sudo apt-get update
sudo apt-get install typora

添加秘钥-加安装服务器-更新软件信息-安装

ok

封面

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
如何快乐的写代码,让Visual Studio Code更加赏心悦目,主题 字体
全志F1C100s主线Linux的LVGL 8.2移植过程记录
修改grub主题(分辨率,字体大小)
unity3d学习笔记(十)NGUI制作中文字体
用 Python 批量加水印
python爬虫反爬 | 对方是如何丧心病狂的通过 css 加密让你爬不到数据的
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服