dilvan
dilvan

Reputation: 2239

How to show -> and => as special characters in the IntelliJ Idea IDE?

How can I show some symbols as special characters in the IntelliJ editor (for the Rust and Java languages), for example -> as ?

Upvotes: 9

Views: 6204

Answers (4)

andreshincapier
andreshincapier

Reputation: 101

It worked for me to do the following within the IntelliJ settings

enable ligatures

Upvotes: 2

Hasan A Yousef
Hasan A Yousef

Reputation: 24968

Enable in Settings → Editor → Color Scheme → Color Scheme Font → Enable Font Ligatures. Select Fira Code as "Primary font" under Settings → Editor → Color Scheme → Color Scheme Font → Font.

Upvotes: 0

Tim Diekmann
Tim Diekmann

Reputation: 8466

You are searching for font ligatures.

In writing and typography, a ligature occurs where two or more graphemes or letters are joined as a single glyph. An example is the character æ as used in English, in which the letters a and e are joined.

IntelliJ supports this by default in the Settings -> Editor -> Font -> Enable font ligatures:

enter image description here

Fonts supporting ligatures I'm aware of are:

Upvotes: 13

Sternjobname
Sternjobname

Reputation: 779

You're going to want to use a font which supports ligatures, such as Fira Code: https://github.com/tonsky/FiraCode

Upvotes: 4

Related Questions