Reputation: 7345
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.
Upvotes: 390
Views: 165340
Reputation: 1
As of the latest version:
PhpStorm > Preferences.. > Editor > General > Appearance > Show line numbers
Upvotes: 0
Reputation: 3320
By typing command + shift + A
you will get a search prompt and write line numbers
. Now you can trigger button on or off
Upvotes: 3
Reputation: 402393
Settings
(or Preferences
if you are on Mac) | Editor
| General
| Appearance
and check Show line numbers
.
Upvotes: 656
Reputation: 7249
In PHPStorm 2016: File > Settings > Editor > General > Appearance > check "Show line numbers"
Upvotes: 3
Reputation: 39
in the top right corner is a search button type show line numbers and you will see a toggle option. this way you never have to do it yourself. :)
Upvotes: 2
Reputation: 117
Simplest solution for line numbers in php storm..There are many other solutions but i think A big picture a good from 1000 words.
Upvotes: 7
Reputation: 665
You should go to: File -> Settings -> Editor -> General -> Appearance -> Show Line Numbers
Upvotes: 0
Reputation: 2497
just double tap 'Shift'
and search for 'Line Numbers'
and there you will see a toggle option on or off
Upvotes: 15
Reputation: 10378
For PhpStorm version 9 on Windows.
File
→Settings
→Editor
→General
→Appearence
then check Show line numbers
Upvotes: 2
Reputation: 86317
On the Mac version 8.0.1 has this setting here:
PhpStorm > Preferences > Editor (this is in the second section on the left - i.e. IDE Settings NOT Project Settings) > Appearance > Show line numbers
Upvotes: 0
Reputation: 6249
File -> Settings -> Editor -> General -> Appearance check "Show Line Numbers"
This is the current location as of phpStorm 8.0.2 on Ubuntu 14.04
Upvotes: 6
Reputation: 521
Just right click on left side where line numbers generally show, select "show line numbers"
Upvotes: 3
Reputation: 91
In PHPStorm 8 this setting is no longer under 'Appearance' but now in:
File -> Settings -> Editor -> Appearance -> Show line numbers
Upvotes: 8
Reputation: 414
File->settings->IDE Settings->Editor->Appearance
And just check the "Show line numbers" works with 8.0.1
Upvotes: 1
Reputation: 5985
If you're on a Mac:
PhpStorm -> Preferences... -> Editor -> Appearance -> Show Line Numbers
Upvotes: 15
Reputation: 18846
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
Upvotes: 125
Reputation: 17912
All the guys are right. I am just bringing the the current soultion with the images.
File
-> Settings
In the box in the top right corner type in line numbers
, just below that choose Editor
->Appearance
, from the right checkboxes, find Show line numbers
and check it.
After that hit Apply
and OK
That should do the trick.
My version of PhpStorm is 6.0.3
Upvotes: 52
Reputation: 71
Follow the below steps:
Upvotes: 7