Phpstorm zen 编码:插入 标签
PhpStorm 中是否有内置的 zen 编码快捷方式来插入 标签?如果没有,我该如何设置呢?
Is there a built-in zen coding shortcut in PhpStorm to insert a <?php ?>
tag? If not, how would I go about setting one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
不,没有,您可以通过转到文件 -> 来设置它设置-> -- IDE设置-->实时模板 ->添加并使用以下值:-
No there is not, You can set it by Going to File -> Settings -> -- IDE Settings -- -> Live Templates -> Add And using the following values:-
在 PhpStorm2016.1 中必须将 Value 中的 Applicable 更改为 HTML 。
转到文件 ->设置->编辑->代码风格->实时模板
在右侧边栏上单击“+”,然后:
缩写:(例如)p
模板文本:
应用:像以前一样将值更改为 HTMLl
然后点击确定。
In PhpStorm2016.1 must change Applicable in Value to HTML .
Go to File -> Setting -> Editor -> Code Style -> Live Templates
On right sidebar click on "+" then :
Abbreviation : (for example) p
Template text :
Applicatin :change the value to HTMLl like befor
then click on ok .
在较新版本的 PhpStorm(2019.* 或更高版本)中,添加快捷方式略有不同。
首先转到
文件->设置
(或只需按CTRL + ALT + S
)。打开Editor
选项卡并找到Live Templates
选项卡。选择 PHP 并单击右侧边栏中的蓝色小加号图标,选择实时模板并:Abbreviation
输入上键入快捷方式。模板文本
区域输入。
单击
应用
和确定
按钮。就是这样。In newer versions of PhpStorm(2019.* or higher) adding the shortcut is a little bit different.
First go to
File -> Settings
(or simply pressCTRL + ALT + S
). OpenEditor
tab and findLive Templates
tab. Select PHP and click small blue plus icon at the right sidebar, select live template and:Abbreviation
input.<?php $END$ ?>
ontemplate text
area.Click
Apply
andOK
buttons. That's it.转到
单击右侧的 + 按钮
然后单击“实时模板”,
最后输入以下内容:
单击“应用”,然后单击“确定”
现在输入 php 并在 php 文件中按 Tab 键
Go to
Click + button on the right side
then click Live Template
lastly input following:
Click Apply then OK
Now type php and press tab in a php file
您可以通过文件 -> 来设置它。设置-> -- IDE设置--> Live Templates
然后输入
You can set it by going to File -> Settings -> -- IDE Settings -- -> Live Templates
and then input