问题
Having a section of HTML tag:
<div>
/* a long long text */
</div>
Suppose the caret is at the begin of the tag <div>
,
is there any key to move the caret to the closing </div>
?
There is a similar concept on CSS (doesn't work on HTML) that works fine:
.myClass {
....
}
in this case, Ctrl + ]/[ moves to the code block end/start.
Here is the PhpStorm Default Keymap. I can't find the key I'm looking for.
回答1:
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:
- http://youtrack.jetbrains.com/issue/WI-20474
回答2:
Using PhpStorm 10 && 2016.2:
Ctrl + shift + m
works just fine!
回答3:
Ctrl + shift + m works just fine in PHPstorm2016.2!
来源:https://stackoverflow.com/questions/25421355/shortcut-key-in-phpstorm-to-move-to-html-end-tag