PhpStorm: How to Show Line Numbers

If you install PHPStorm, you will notice that the default setting of this editor doesn’t show line numbers. For me, it is important to show this. Here is how to activate it.

Note: I’m using mac and PHP Storm 8.0.3

  1. Go to Preferences
  2. Go to Editor -> General -> Appeareance
  3. Click to check on Show line numbers
  4. Done :)



  • Update for PHP Storm 8.0.3 (24 Apr 2015)
  • Ivan Kadykeev

    Thanks brother :-)

  • Jamie Murphy

    Do you know what this is in PHP Storm 8? The option doesn’t seem to be there anymore.

    • deerawan

      Hi Jamie,

      I think new PHPStorm made changes on menu. Please check it at Editor -> General -> Appearance

      • Jamie Murphy

        Spot on! Thankyou.

  • Vasim Sayyad

    Thanx a lots screenshots is quite easy than descriptioins …Thx for helpins this

    • deerawan

      You are welcome Vasim :)

  • Craig R Morton

    Perfect, thanks