在ubuntu中,安裝完Sublime后,打開包含中文和英文的文件時,會出現中文和英文在同一行中會錯位。這時可以安裝并設置Sublime的字體。
安裝YaHei Consolas Hybrid字體
git clone https://github.com/cypro666/yahei.consolas-font.git
cd yahei.consolas-font
./install.sh
并在Sublime的用戶設置中,添加字體設置
"font_face": "YaHei Consolas Hybrid",