Skip to content
Advertisement

Shortcut key in PhpStorm to move to HTML end tag

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.

Advertisement

Answer

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:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement