How to make phpstorm display line numbers by defau

2019-01-29 20:07发布

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.

19条回答
叼着烟拽天下
2楼-- · 2019-01-29 20:43

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

查看更多
戒情不戒烟
3楼-- · 2019-01-29 20:43

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

phpstorm

查看更多
看我几分像从前
4楼-- · 2019-01-29 20:43

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

查看更多
我只想做你的唯一
5楼-- · 2019-01-29 20:47

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

查看更多
啃猪蹄的小仙女
6楼-- · 2019-01-29 20:51

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

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

查看更多
冷血范
7楼-- · 2019-01-29 20:52

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

查看更多
登录 后发表回答