启用IntelliJ的花式≠(不等于)运算符 [英] Enabling IntelliJ's fancy ≠ (not equal to) operator

查看:1287
本文介绍了启用IntelliJ的花式≠(不等于)运算符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在哈迪(Hadi)的



他正在使用常规的!= 运算符,IDEA正在使用



我一直在使用IntelliJ的配置,但无法启用此新的 fancy 功能。有帮助吗?



PS。我正在使用最新的Ultimate版本(2016.3.3)。

解决方案


要启用连字,转到设置→编辑器→颜色和颜色;字体→
字体,选择一种支持连字的字体,例如FiraCode,Hasklig,
Monoid或PragmataPro(必须安装字体),然后选择
启用字体连字选项。


来源:链接



要预览某些字体,包括带有连字的字体: https://app.programmingfonts.org/


I witnessed this in the GOTO 2016 • Kotlin - Ready for Production conference by Hadi Hariri.

In some of his code, what would normally look like:

if (x != y) { /* do some stuff */ }

Is being displayed in an elegant style:

if (x ≠ y) { /* do some stuff */ }

Here's a screen-shot from the live coding session:

He's using the regular != operator, the IDEA is taking care of the rest.

I've been playing with my IntelliJ's configuration but couldn't enable this new fancy feature. Any help?

PS. I'm using the latest Ultimate version (2016.3.3).

解决方案

To enable ligatures, go to the Settings → Editor → Colors & Fonts → Font, choose a font that supports ligatures, e.g. FiraCode, Hasklig, Monoid or PragmataPro (the font has to be installed) and select the Enable font ligatures option.

Source: link.

To preview some fonts, including several with ligatures: https://app.programmingfonts.org/

这篇关于启用IntelliJ的花式≠(不等于)运算符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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