【问题标题】:How to show -> and => as special characters in the IntelliJ Idea IDE?如何在 IntelliJ Idea IDE 中将 -> 和 => 显示为特殊字符?
【发布时间】:2021-12-07 04:55:44
【问题描述】:

如何在 IntelliJ 编辑器中将某些符号显示为特殊字符(对于 Rust 和 Java 语言),例如 ->

【问题讨论】:

标签: intellij-idea


【解决方案1】:

您正在搜索font ligatures

在书写和排版中,两个或多个字素或字母连接为一个字形时会出现连字。一个例子是英文中使用的字符æ,其中字母ae 连接在一起。

IntelliJ 在Settings -> Editor -> Font -> Enable font ligatures 中默认支持此功能:

我知道的支持连字的字体是:

【讨论】:

    【解决方案2】:

    您将要使用支持连字的字体,例如 Fira 代码:https://github.com/tonsky/FiraCode

    【讨论】:

    • FiraCode 中有关于 IntelliJ 的说明。在我的情况下(版本> 2018.1)就足够了:在Settings → Editor → Color Scheme → Color Scheme Font → Enable Font Ligatures. 中启用在Settings → Editor → Color Scheme → Color Scheme Font → Font.下选择Fira代码作为“主要字体”
    【解决方案3】:

    在设置 → 编辑器 → 颜色方案 → 颜色方案字体 → 启用字体连字中启用。在 Settings → Editor → Color Scheme → Color Scheme Font → Font 下选择 Fira Code 作为“Primary font”。

    【讨论】:

      【解决方案4】:

      在 IntelliJ 设置中执行以下操作对我有用

      【讨论】:

        猜你喜欢
        • 2016-09-20
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-10-14
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多