How to make phpstorm display line numbers by default?

IdePhpstormJetbrains IdeLine Numbers

Ide Problem Overview


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.

Ide Solutions


Solution 1 - Ide

Settings (or Preferences if you are on Mac) | Editor | General | Appearance and check Show line numbers.

Solution 2 - Ide

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.

enter image description here

Red dot on the screenshot is a place where you have to click

Solution 3 - Ide

All the guys are right. I am just bringing the the current soultion with the images.

  1. Go to File-> Settings

enter image description here

  1. 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.

  2. After that hit Apply and OK

enter image description here

That should do the trick.

My version of PhpStorm is 6.0.3

Solution 4 - Ide

If you're on a Mac:

PhpStorm -> Preferences... -> Editor -> Appearance -> Show Line Numbers

main menu inner menu

Solution 5 - Ide

just double tap 'Shift'
and search for 'Line Numbers'
and there you will see a toggle option on or off

Solution 6 - Ide

In PHPStorm 8 this setting is no longer under 'Appearance' but now in:

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

Solution 7 - Ide

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.

Solution 8 - Ide

Simplest solution for line numbers in php storm..There are many other solutions but i think A big picture a good from 1000 words.

Simplest solution for line numbers in php storm..There are many other solutions but i think A big picture a good from 1000 words.

Solution 9 - Ide

File -> Settings -> Editor -> General -> Appearance check "Show Line Numbers"

This is the current location as of phpStorm 8.0.2 on Ubuntu 14.04

Solution 10 - Ide

Settings -> editor | appearance | Show line numbers

Solution 11 - Ide

Just right click on left side where line numbers generally show, select "show line numbers"

Solution 12 - Ide

In PHPStorm 2016: File > Settings > Editor > General > Appearance > check "Show line numbers"

Solution 13 - Ide

By typing command + shift + A you will get a search prompt and write line numbers . Now you can trigger button on or off

![phpstorm](http://i.imgur.com/e1JYoJp.png "phpstorm")

Solution 14 - Ide

For PhpStorm version 9 on Windows.
FileSettingsEditorGeneralAppearence then check Show line numbers

Solution 15 - Ide

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. :)

Solution 16 - Ide

File->settings->IDE Settings->Editor->Appearance

And just check the "Show line numbers" works with 8.0.1

Solution 17 - Ide

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

Solution 18 - Ide

You should go to: File -> Settings -> Editor -> General -> Appearance -> Show Line Numbers

Solution 19 - Ide

As of the latest version:

PhpStorm > Preferences.. > Editor > General > Appearance > Show line numbers

PHPstorm line numbers

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
QuestiondominoView Question on Stackoverflow
Solution 1 - IdeCrazyCoderView Answer on Stackoverflow
Solution 2 - IdepleerockView Answer on Stackoverflow
Solution 3 - IdeMatijaView Answer on Stackoverflow
Solution 4 - IdeMichel AyresView Answer on Stackoverflow
Solution 5 - IdealaminView Answer on Stackoverflow
Solution 6 - IdeJDGalwayView Answer on Stackoverflow
Solution 7 - IdeScottView Answer on Stackoverflow
Solution 8 - IdeZahid Khurshid ChandioView Answer on Stackoverflow
Solution 9 - IdeRyanView Answer on Stackoverflow
Solution 10 - IdeJamie HutberView Answer on Stackoverflow
Solution 11 - IdeNasir AhmedView Answer on Stackoverflow
Solution 12 - IdeAndrew KoperView Answer on Stackoverflow
Solution 13 - IdeMominView Answer on Stackoverflow
Solution 14 - IdeShannon MatthewsView Answer on Stackoverflow
Solution 15 - Ideduttch gamerLSView Answer on Stackoverflow
Solution 16 - Idekomu_MkeyaView Answer on Stackoverflow
Solution 17 - IdeSnowcrashView Answer on Stackoverflow
Solution 18 - IdeTai ChristianView Answer on Stackoverflow
Solution 19 - Ideuser6118304View Answer on Stackoverflow