How can I permanently enable line numbers in IntelliJ?

后端 未结 21 2380
别那么骄傲
别那么骄傲 2020-12-02 03:26

How can I permanently enable line numbers in IntelliJ IDEA?

相关标签:
21条回答
  • 2020-12-02 04:11

    IntelliJ 14 (Ubuntu):

    See: how-do-i-turn-on-line-numbers-permanently-in-intellij-14

    Permanently:

    File > Settings > Editor > General > Appearance > show line numbers

    Editor

    For current Editor:

    View > Active Editor > Show Line Numbers

    Menu

    0 讨论(0)
  • 2020-12-02 04:12

    On Mac Intellij 12.1.2 there is no File-Settings:

    There is an application-name menu item to the left of "File" with a "preferences" menu item:

    Choosing "Preferences" on the Mac.

    and within that is the "Settings" dialog shown by the Windows Intellij.

    0 讨论(0)
  • 2020-12-02 04:13

    I add this response for IntelliJ IDEA 2018.2 - Ultimate.

    Using menu

    IntelliJ Idea > Preferences > Editor > General > Appearance > Show Line Numbers

    Using Shortcuts - First way

    For Windows : Ctrl+Shift+a
    For Mac : Cmd+shift+a

    Using Shortcuts - Seconde way

    Touch Shift twice

    These three methods exist since the last 4 versions of Intellij and I think they remain valid for a long time.

    0 讨论(0)
  • 2020-12-02 04:15

    Ok in intelliJ 14 Ultimate using the Mac version this is it.

    IntelliJ Idea > Preferences > Editor > General > Appearance > Show Line Numbers

    0 讨论(0)
  • 2020-12-02 04:15

    On IntelliJ 12 on MAC OSX, I had a hard time finding it. The search wouldn't show me the way for some reason. Go to Preferences and under IDE Settings, Editor, Appearance and select 'Show line numbers'

    enter image description here

    0 讨论(0)
  • 2020-12-02 04:18

    IntelliJ 14.X Onwards

    From version 14.0 onwards, the path to the setting dialog is slightly different, a General submenu has been added between Editor and Appearance as shown below

    enter image description here

    IntelliJ 8.1.2 - 13.X

    From IntelliJ 8.1.2 onwards, this option is in File | Settings1. Within the IDE Settings section of that dialog, you'll find it under Editor | Appearance.

    1. On a Mac, these are named IntelliJ IDEA | Preferences...

    enter image description here

    0 讨论(0)
提交回复
热议问题