How to make PyCharm always show line numbers

PycharmJetbrains Ide

Pycharm Problem Overview


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 must be a global setting for this, right?

Pycharm Solutions


Solution 1 - Pycharm

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

enter image description here

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

Solution 2 - Pycharm

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"

Solution 3 - Pycharm

For version 3.0 (Community Edition):

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

Solution 4 - Pycharm

PyCharm Version 3.4.1(For all files in the project):

> File -> Preferences -> Editor (IDE Settings) -> Appearance -> mark > 'Show line numbers'

PyCharm Version 3.4.1(only for existing file in the project):

> View -> Active Editor -> Show Line Numbers

image

Solution 5 - Pycharm

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

Solution 6 - Pycharm

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

Solution 7 - Pycharm

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)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKimvaisView Question on Stackoverflow
Solution 1 - PycharmBluesRockAddictView Answer on Stackoverflow
Solution 2 - PycharmkmasifView Answer on Stackoverflow
Solution 3 - PycharmjcalazanView Answer on Stackoverflow
Solution 4 - PycharmCelikView Answer on Stackoverflow
Solution 5 - PycharmbrunobowdenView Answer on Stackoverflow
Solution 6 - PycharmfannyView Answer on Stackoverflow
Solution 7 - PycharmMuhammad Faizan FareedView Answer on Stackoverflow