[英]How to make phpstorm display line numbers by default?
How to make phpstorm display line numbers by default?如何让phpstorm默认显示行号?
Couldn't find that option.找不到那个选项。 It's kind of annoying to turn them on manually for each page.
为每个页面手动打开它们有点烦人。
Settings
(or Preferences
if you are on Mac) | Settings
(或Preferences
如果您使用的是 Mac)| Editor
| Editor
| General
| General
| Appearance
and check Show line numbers
. Appearance
和检查Show line numbers
。
Just now found where is it on Windows .刚刚在Windows上找到它的位置。 Its
View
-> Active Editor
-> Show Line Numbers
(changes only for current document) and File
-> Settings
-> Editor
-> Appearance
-> Show Line Numbers
(for all documents)它的
View
-> Active Editor
-> Show Line Numbers
(仅针对当前文档更改)和File
-> Settings
-> Editor
-> Appearance
-> Show Line Numbers
(针对所有文档)
For Mac Version go to PhpStorm
-> Preferences
in menu.对于Mac 版本,请转到
PhpStorm
-> 菜单中的Preferences
选项。 In the preference window go to IDE settings
-> Editor
-> Appearance
-> Show Line Numbers
(To change setting for all documents)在首选项窗口中转到
IDE settings
-> Editor
-> Appearance
-> Show Line Numbers
(更改所有文档的设置)
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.或者,如果您想更轻松地快速设置显示行号PER CURRENT WINDOW - 右键单击长长的白色列(设置断点的位置),然后选择显示行号。
Red dot on the screenshot is a place where you have to click截图上的红点是需要点击的地方
All the guys are right.所有的人都是对的。 I am just bringing the the current soultion with the images.
我只是用图像带来当前的灵魂。
File
-> Settings
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.在右上角的框中输入
line numbers
,在其下方选择Editor
-> Appearance
,从右侧的复选框中,找到Show line numbers
并选中它。
After that hit Apply
and OK
之后点击
Apply
和OK
That should do the trick.这应该够了吧。
My version of PhpStorm is 6.0.3我的 PhpStorm 版本是6.0.3
If you're on a Mac:如果您使用的是 Mac:
PhpStorm -> Preferences... -> Editor -> Appearance -> Show Line Numbers PhpStorm -> 首选项... -> 编辑器 -> 外观 ->显示行号
just double tap ' Shift '只需双击' Shift '
and search for ' Line Numbers '并搜索“行号”
and there you will see a toggle option on or off在那里你会看到一个打开或关闭的切换选项
In PHPStorm 8 this setting is no longer under 'Appearance' but now in:在 PHPStorm 8 中,此设置不再位于“外观”下,而是位于:
File -> Settings -> Editor -> Appearance -> Show line numbers文件 -> 设置 -> 编辑器 -> 外观 -> 显示行号
Follow the below steps:请按照以下步骤操作:
File -> Settings -> Editor -> General -> Appearance check "Show Line Numbers"文件 -> 设置 -> 编辑器 -> 常规 -> 外观勾选“显示行号”
This is the current location as of phpStorm 8.0.2 on Ubuntu 14.04这是 Ubuntu 14.04 上 phpStorm 8.0.2 的当前位置
Settings -> editor |设置 -> 编辑器 | appearance |
外观| Show line numbers
显示行号
只需右键单击通常显示行号的左侧,选择“显示行号”
在 PHPStorm 2016 中:文件 > 设置 > 编辑器 > 常规 > 外观 > 选中“显示行号”
By typing command + shift + A
you will get a search prompt and write line numbers
.通过输入
command + shift + A
你会得到一个搜索提示并输入line numbers
。 Now you can trigger button on or off
现在您可以
on or off
触发按钮
For PhpStorm version 9 on Windows.对于 Windows 上的 PhpStorm 版本 9。
File
→ Settings
→ Editor
→ General
→ Appearence
then check Show line numbers
File
→ Settings
→ Editor
→ General
→ Appearence
然后检查Show line numbers
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.
这样你就不必自己动手了。 :)
:)
File->settings->IDE Settings->Editor->Appearance
只需检查“显示行号”是否适用于 8.0.1
On the Mac version 8.0.1 has this setting here:在 Mac 版本 8.0.1 上有这个设置:
PhpStorm > Preferences > Editor (this is in the second section on the left - ie IDE Settings NOT Project Settings) > Appearance > Show line numbers PhpStorm > 首选项 > 编辑器(这是在左边的第二部分 - 即 IDE 设置而不是项目设置)> 外观 > 显示行号
您应该转到:文件 -> 设置 -> 编辑器 -> 常规 -> 外观 -> 显示行号
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.