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

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

问题描述

我在 Hadi 的

他使用常规的 != 运算符,其余的由 IDEA 处理.

我一直在使用 IntelliJ 的配置,但无法启用这个新的 fancy 功能.有什么帮助吗?

解决方案

要启用连字,请转到设置 → 编辑器 → 颜色和字体 →字体,选择支持连字的字体,例如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, marked up to underle the operator:

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?

解决方案

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天全站免登陆