How can I permanently enable line numbers in IntelliJ?

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

How can I permanently enable line numbers in IntelliJ IDEA?

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

    In Intellij 13 the layout has changed, the Settings button can only be found in File -> Settings and not in the toolbars, and from there you follow the same steps: Editor -> Appearance -> Show line numbers, or search for Line numbers in the Settings search input.Intellij Settings search for line numbers

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

    For IntelliJ 20.1 or above, on Mac OSX:

    IntelliJ IDEA -> Editor -> General -> Appearance -> Show line numbers

    Point to be noted: Always look for Editor

    For shortcut:

    ⌘ + ⇧ + A (command + shift + A)

    type

    and click on the pop up to turn on Show line numbers and you are good to go.

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

    The question is obviously well answered already, but since IJ 13 you can enable line numbers in 2 seconds flat:

    1. Press shift twice
    2. Type "line number"
    3. The option shows in the menu and press enter to enable/disable.

    enter image description here

    Et voila ;)

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

    Android Studio 1.3.2 and on, IntelliJ 15 and on

    Global configuration

    File -> Settings -> Editor -> General -> Appearance -> Show line numbers


    Current editor configuration

    First way: View -> Active Editor -> Show Line Numbers (this option will only be available if you previously have clicked into a file of the active editor)

    Second way: Right click on the small area between the project's structure and the active editor (that is, the one that you can set breakpoints) -> Show Line Numbers.

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

    IntelliJ 2019 community edition has line number by default. If you want to show or hide line numbers, go to the following settings to change the appearance.

    go to → File → Setting → Editor → General → Appearance → [Check] Show line numbers

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

    On IntelliJ IDEA 2016.1.2

    Go to Settings > Editor > General > Appearance then check the Show Line number option

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