How can I permanently enable line numbers in IntelliJ?

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

How can I permanently enable line numbers in IntelliJ IDEA?

相关标签:
21条回答
  • 2020-12-02 03:55

    In IntelliJ 14 it has moved again somewhat down the menu.

    Now we have it unter Editor -> General -> Appearance

    enter image description here

    0 讨论(0)
  • 2020-12-02 03:57

    Android Studio

    Go to Android Studio => Preferences => Editor => General => Appearance => set Checked "Show line numbers"

    enter image description here

    0 讨论(0)
  • 2020-12-02 03:57

    1st way: Go to View => Active Editor => show line numbers

    enter image description here

    2nd way Go to Android Studio => Preferences => Editor=> Appearance => set Checked "Show Line Numbers"

    enter image description here

    enter image description here

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

    I just hit this with IdeaVim plugin installed, where even if I set Show Line Numbers, it continued to revert to hiding them.

    The (forehead-slapping-worthy) solution was:

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

    For InteliJ IDEA 11.0 and above
    Goto File --> Settings in the Settings window Editor --> Appearance
    and tick Show line numbers check box.

    enter image description here

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

    NOT a solution, rather a TEMPORARY solution which only works only for the current editor and current session:

    Simply right click on the place where the line-numbers should be, and there you'll see a small menu.

    then, mark the "Show Line Numbers" option.

    enter image description here

    Please note that this only works on a per-file basis, however. Enjoy.

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