How to make PyCharm always show line numbers

后端 未结 7 1963
梦如初夏
梦如初夏 2021-01-29 22:25

I cannot seem to be able to find the setting to enable line numbers for all files, but I have to always right click and enable this on per file basis.

There mu

相关标签:
7条回答
  • 2021-01-29 22:33

    Version 2.6 and above:
    PyCharm (far left menu) -> Preferences... -> Editor (bottom left section) -> General -> Appearance -> Show line numbers checkbox

    Version 2.5 and below:
    Settings -> Editor -> General -> Appearance -> Show line numbers checkbox

    0 讨论(0)
  • 2021-01-29 22:36

    For version 3.0 (Community Edition):

    File -> Settings -> Editor (under IDE Settings) -> Appearance -> check 'Show line numbers'

    0 讨论(0)
  • 2021-01-29 22:42

    For version 2.6 and up, the dialog is in the "Preferences" dialog, access using Cmd ',':

    PyCharm (far left menu) -> Preferences... -> Editor (bottom left section) -> Appearance -> Show line numbers checkbox

    0 讨论(0)
  • 2021-01-29 22:50

    Using Search bar

    1. Press 2 times Shift
    2. Paste /editor /appearance/ and then
    3. Click on Show line numbers toggle button

    For Windows and Linux

    File | Settings | Editor | General | Appearance 
    

    For macOS

    IntelliJ IDEA | Preferences | Editor | General | Appearance 
    

    Using shortcut

    Ctrl+Alt+S
    

    Then

    Editor > General > Appearance

    Click on Show line numbers toggle button.


    Pycharm Official Doc (Appearance)

    0 讨论(0)
  • 2021-01-29 22:55

    For version 4.0, 4.5 on Windows

    File -> Settings

    Then,

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

    For version 4.0 on Mac OSX

    PyCharm-->Preferences

    Then,

    Editor-->General-->Appearance-->checkbox: "Show line numbers"

    0 讨论(0)
  • 2021-01-29 22:55

    v. community 5.0.4 (linux): File -> Settings -> Editor -> General -> Appearance -> now check 'Show line numbers', confirm w. OK an voila :)

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