Reputation: 2239
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
Reputation: 101
It worked for me to do the following within the IntelliJ settings
Upvotes: 2
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
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 lettersa
ande
are joined.
IntelliJ supports this by default in the Settings -> Editor -> Font -> Enable font ligatures
:
Fonts supporting ligatures I'm aware of are:
Upvotes: 13
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