PhpStorm中的快捷键可移至HTML结束标签 [英] Shortcut key in PhpStorm to move to HTML end tag
问题描述
具有一段HTML标签:
Having a section of HTML tag:
<div>
/* a long long text */
</div>
假设插入标记位于标签<div>
,
的开头
是否有任何键可将插入符号移至结束</div>
?
Suppose the caret is at the begin of the tag <div>
,
is there any key to move the caret to the closing </div>
?
在CSS上有一个类似的概念(不适用于HTML),可以很好地工作:
There is a similar concept on CSS (doesn't work on HTML) that works fine:
.myClass {
....
}
在这种情况下, Ctrl + ] / [移至代码块结束/开始.
in this case, Ctrl + ]/[ moves to the code block end/start.
这是PhpStorm默认键盘图.我找不到我要寻找的钥匙.
Here is the PhpStorm Default Keymap. I can't find the key I'm looking for.
推荐答案
Ctrl +] 在.html
文件中也可以正常工作.但是对于.php
中的HTML标签,该操作将失败.
Ctrl + ] works just fine in .html
files. But it fails for HTML tags in .php
.
这是一个已知问题-订阅票证(星号/投票/评论)以获取有关进度的通知:
It's a known issue -- subscribe to the ticket (star/vote/comment) to get notified on progress:
这篇关于PhpStorm中的快捷键可移至HTML结束标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!