Shortcut key in PhpStorm to move to HTML end tag

陌路散爱 提交于 2019-12-22 02:04:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!