简体   繁体   English

如何让phpstorm默认显示行号?

[英]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.我只是用图像带来当前的灵魂。

  1. Go to File -> Settings转到File - > Settings

在此处输入图片说明

  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.在右上角的框中输入line numbers ,在其下方选择Editor -> Appearance ,从右侧的复选框中,找到Show line numbers并选中它。

  2. After that hit Apply and OK之后点击ApplyOK

在此处输入图片说明

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:请按照以下步骤操作:

  • Click on File->Settings->点击文件->设置->
  • In the Settings dialog box Expand Editor under IDE Settings在“设置”对话框中展开“IDE 设置”下的“编辑器”
  • Click Apperance - > select Show line numbers.单击外观 - > 选择显示行号。
  • Click Apply->Ok.单击“应用”->“确定”。

phpstorm中行号的最简单解决方案..还有很多其他解决方案,但我认为1000字的大图很好。

Simplest solution for line numbers in php storm..There are many other solutions but i think A big picture a good from 1000 words. phpstorm中行号的最简单解决方案..还有很多其他解决方案,但我认为1000字的大图很好。

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触发按钮

phpstorm

For PhpStorm version 9 on Windows.对于 Windows 上的 PhpStorm 版本 9。
FileSettingsEditorGeneralAppearence then check Show line numbers FileSettingsEditorGeneralAppearence然后检查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 设置而不是项目设置)> 外观 > 显示行号

您应该转到:文件 -> 设置 -> 编辑器 -> 常规 -> 外观 -> 显示行号

As of the latest version:截至最新版本:

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

PHPstorm 行号

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM