Sublime text 3 Fira 代码连字 [英] Sublime text 3 Fira Code ligatures

查看:161
本文介绍了Sublime text 3 Fira 代码连字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据

解决方案

https://blog.sarav.co/installing-fira-code-ligatures-sublime-text-3-mac-os/.3156+ 版本已启用对 Sublime Text 的连字支持.

下载开发版本 3156

首先前往 https://www.sublimetext.com/3dev 然后下载最新的Sublime Text 开发版本 3156+.

注意:请注意,开发版本仅供许可用户使用,下载开发版本可能会破坏某些内容.

如果您还没有安装 Fira Code,请转至 https://github.com/tonsky/FiraCode 并从 github 下载 zip 并解压.您将在 distr 文件夹下找到 ttf 文件夹.复制所有文件并将它们粘贴到 /Users//Library/Fonts 文件夹下.

最后,打开安装好的 sublime text 并点击 cmd+, 你会看到 Preferences.sublime-settings.将以下代码粘贴到那里.

font_face":Fira 代码",字体选项":[gray_antialias"],

就是这样!现在在您的系统上启用了连字.享受:)

Accordingly to this commit, ST3 has support for Fira Code ligatures, but I still don't see any changes. Obviously I have installed Fira code and have "font_face": "Fira Code", settings for this in my user settings file.

But my code still with default font, without ligatures. How I can fix it?

解决方案

As mentioned on https://blog.sarav.co/installing-fira-code-ligatures-sublime-text-3-mac-os/. Ligature support on Sublime Text has been enabled from version 3156+.

Download Dev Version 3156

First head over to https://www.sublimetext.com/3dev and then download the latest Sublime Text dev version 3156+.

NOTE : Kindly note that dev versions is only available for licensed user and downloading dev version might break something.

If you have not installed Fira Code already, go to https://github.com/tonsky/FiraCode and download the zip from github and extract it. You’ll find the ttf folder under distr folder. Copy all the files and paste them over under /Users/<username>/Library/Fonts folder.

Finally, open the installed sublime text and hit cmd+, you will see Preferences.sublime-settings. Paste the following code there.

"font_face": "Fira Code",
"font_options":
[
    "gray_antialias"
],

Thats it! Now ligatures are enabled on your system. Enjoy :)

这篇关于Sublime text 3 Fira 代码连字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆