How to make phpstorm display line numbers by default?
Couldn't find that option. It's kind of annoying to turn them on manually for each page.
-
36you can search on top of the settings pane. just write "line number" and you will find itkissgyorgy– kissgyorgy2012-05-02 19:03:37 +00:00Commented May 2, 2012 at 19:03
-
27I can't believe PhpStorm doesn't have this enabled by default. What developer doesn't want line numbers most of the time? (not really a question) Anyways, good question, thanks!Elijah Lynn– Elijah Lynn2013-06-05 14:47:27 +00:00Commented Jun 5, 2013 at 14:47
-
10Yeah, it's actually really annoying that it's not on by default. I'd assume every developer unfamiliar with their product has ended up on this page at some point.skrilled– skrilled2013-11-18 23:21:12 +00:00Commented Nov 18, 2013 at 23:21
-
2Maybe we are all supposed to get to the point as programmers where our chi "inner energy" helps us see line numbers even when they're not there. Thank you IntelliJ!!!Cozzbie– Cozzbie2015-06-18 08:45:39 +00:00Commented Jun 18, 2015 at 8:45
-
1Other IDE's don't have it enabled by default either, not sure why... Monitor size is generally not exactly that limited these days, and line numbers are used constantly, by me anyways.Andrew– Andrew2015-10-11 17:36:19 +00:00Commented Oct 11, 2015 at 17:36
19 Answers
Settings (or Preferences if you are on Mac) | Editor | General | Appearance and check Show line numbers.
5 Comments
ctrl+alt+s, or file -> settingsEditor -> General -> Appearance -> Check Show line numbersline numbers and you can enable and disable them.Just now found where is it on Windows. Its View -> Active Editor -> Show Line Numbers (changes only for current document) and File -> Settings -> Editor -> Appearance -> Show Line Numbers (for all documents)
For Mac Version go to PhpStorm -> Preferences in menu.
In the preference window go to IDE settings -> Editor -> Appearance -> Show Line Numbers (To change setting for all documents)
OR if you want to quickly set show line number PER CURRENT WINDOW even easier - right click on the long white column (where breakpoints are set) then select Show Line Numbers.

Red dot on the screenshot is a place where you have to click
2 Comments
File -> Settings -> Editor -> General -> Appearance -> Show Line NumbersAll the guys are right. I am just bringing the the current soultion with the images.
- Go to
File->Settings

In the box in the top right corner type in
line numbers, just below that chooseEditor->Appearance, from the right checkboxes, findShow line numbersand check it.After that hit
ApplyandOK

That should do the trick.
My version of PhpStorm is 6.0.3
Comments
If you're on a Mac:
PhpStorm -> Preferences... -> Editor -> Appearance -> Show Line Numbers

1 Comment
PhpStorm -> Preferences... -> Editor -> Appearance -> General -> Show Line NumbersIn PHPStorm 8 this setting is no longer under 'Appearance' but now in:
File -> Settings -> Editor -> Appearance -> Show line numbers
2 Comments
Follow the below steps:
- Click on File->Settings->
- In the Settings dialog box Expand Editor under IDE Settings
- Click Apperance - > select Show line numbers.
- Click Apply->Ok.
1 Comment
File -> Settings -> Editor -> General -> Appearance check "Show Line Numbers"
This is the current location as of phpStorm 8.0.2 on Ubuntu 14.04
1 Comment
Settings -> editor | appearance | Show line numbers
1 Comment
Just right click on left side where line numbers generally show, select "show line numbers"



