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 */ }
The code uses the regular != operator, and the IDEA takes care of the rest.
So, how can I enable/disable this?
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/
This is the "font ligatures" feature, which uses ligatures to combine the characters in fonts that support them. This feature is disabled by default in the standard editor, and enabled by default in the Reader mode introduced in 2020.3.
This feature can be enabled & disabled for the current project in the project settings window (File | Settings… in Windows and Linux or IntelliJ IDEA | Preferences… in macOS).
The settings are located in the settings window at:
Editor: Editor | Font -> "Enable font ligatures" checkbox
Reader Mode: Editor | Reader Mode -> "Font ligatures" checkbox
Goland 2020.3 (and maybe other versions too) seems to have a bug. Enabling and disabling Goland -> Preferences -> Editor -> Font -> Enable font ligatures works well on normal files but doesn't take effect on files under the vendor/ directory. These files need to be closed and reopened in the editor.
I use Material Design Theme with Android Studio 4.0, navigate to:
File->Settings->Editor->Color Scheme->Color Scheme Font
and check Enable Font Ligatures.Do the same for:
File->Settings->Editor->Color Scheme->Console Font.
This is after choosing FiraCode as your font in inteliJ. Find it here and install it as a normal font.
This is "font ligatures", which is a feature of certain fonts to display two characters into a single symbol (but the two characters are still there in the file). You can search the Preferences page for "ligatures" and check to enable. You'll also need to use a font that supports ligatures, such as Fira Code.
Related
I'm trying to enlarge the font for the markdown displayed in the Jupyter Notebooks opened with IntelliJ DataSpell.
I have adjusted anything in the Settings Menu you can think of. But it only affects the Menu or the Editor, never the Markdown shown.
I found an old topic (below) but that does not work.
How do you change the Markdown preview font size in IntelliJ IDEA?
Has anybody another idea how to adjust the font size?
Regrettably, it is not available.
Please vote for https://youtrack.jetbrains.com/issue/IDEA-232254 in order to increase its priority.
To change the font size of the menus and markdown texts:
File -> Settings -> Appearance & Behavior -> Appearance -> Use custom font (change font) -> Apply / OK
To change the font size of editor:
File -> Settings -> Editor -> Font (change font) -> Apply / OK
To apply changes on Markdown cells, you have to either double click on the cell and run the cell again or just restart the DataSpell IDE.
How can I show some symbols as special characters in the IntelliJ editor (for the Rust and Java languages), for example -> as →?
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:
Fonts supporting ligatures I'm aware of are:
Fira Code
Iosevka
Hasklig
PragmataPro
monoid
Ligaturizer
You're going to want to use a font which supports ligatures, such as Fira Code: https://github.com/tonsky/FiraCode
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.
It worked for me to do the following within the IntelliJ settings
How to modify the font of PhpStorm findbox (find text field)? Fonts are windows default simsun! No change options in settings.
Update: this feature is available starting from IntelliJ IDEA 2018.3.1. To make the search/replace fields use the editor font you can add -Dide.find.use.editor.font=true in Help | Edit Custom VM Options and restart the IDE.
Original answer:
At the moment the font used in the text field is hardcoded and you can't change it, please vote for this request and follow it for updates:
IDEA-106651 Editor Search/Replace: use editor font for text input fields
Other related requests:
IDEA-68258 Font in Find/Replace dialog and Find panel same as in editor
IDEA-125920 Make the editor text search bar text-size & font an option.
Is it possible to change the console font size in IntelliJ IDEA?
I changed the actual text size under Settings > Editor > Font, but "console/terminal" font is too small.
I'm using Community Edition 15
Works on every Intellij Version
Press Ctrl+Shift+a and search for console font:
Select Console Font and the right settings menu will be opened.
Intellij Version < 2018
Open Settings -> Editor -> Colors & Fonts -> Console Font
You can change font size and colors there but you have to save the Scheme into a custom scheme before you can change the values.
I am using the ultimate edition. If you don't see that settings it's probably because of the community edition you are using.
Intellij Version >= 2018
Open Settings -> Editor -> Color Scheme -> Console Font
I used to use IntelliJ 14 with the -Dhidpi=true flag in the vmoptions file and didn't have any problems with the scaling. I've just upgraded to 15 and it features "True HiDPI" but it doesn't seem to work on my Surface Pro 3. I chose to import my options from my previous build but I've checked the new vmoptions file and that flag wasn't copied over. The JetBrains site mentions that the flag isn't required anymore anyway. I've looked through the settings dialogs and the only relevant option seems to be the anti-aliasing settings which are defaulted to subpixel (sounds fine to me). Anyone have an idea how to get back to the 14-era scaling? Thanks.
Try changing "Override the default fonts by..." setting in Appearance & Behavior => Appearance tab. It scaled the menu and icons accordingly for me.
Actually, in addition to the setting in
Appearance & Behavior > Appearance
tab, the following font settings have to be changed, too:
Editor > Colors & Fonts > Font
Editor > Colors & Fonts > Console Font (Button Apply editor font setting)
I haven't found a clear and official recipe to get IntelliJ running correctly on a High DPI screen yet (and have also had a support request running a while ago on which I was repeatedly asked to provide new screen shots using new EAP releases), but I think this is the closest you can get with the IntelliJ 15.
Update 2017-20-17:
It looks like JetBrains has noticed that some people have problems with high-DPI screens. There is a new article (with discussion) that suggests some remedies (I haven't tested them yet, as my current setup is more or less usable):
https://intellij-support.jetbrains.com/hc/en-us/articles/115001260010