Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 373
dilvan Avatar asked May 31 '18 14:05

dilvan


2 Answers

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:

  • Fira Code
  • Iosevka
  • Hasklig
  • PragmataPro
  • monoid
  • Ligaturizer
like image 161
Tim Diekmann Avatar answered Oct 09 '22 00:10

Tim Diekmann


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

like image 31
Sternjobname Avatar answered Oct 09 '22 00:10

Sternjobname