URL87
URL87

Reputation: 11032

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.

Upvotes: 24

Views: 9422

Answers (4)

Jignesh Joisar
Jignesh Joisar

Reputation: 15175

For me works fine in PhpStorm 2021.1.4 version

Ctrl [ Move Caret to Code block start

Ctrl ] Move Caret to Code block end

Ctrl Shift M Move Caret to Maching Brace

Upvotes: 0

azerafati
azerafati

Reputation: 18603

Using PhpStorm 10 && 2016.2:

Ctrl + shift + m works just fine!

Upvotes: 39

Tanvir Sarker
Tanvir Sarker

Reputation: 31

Ctrl + shift + m works just fine in PHPstorm2016.2!

Upvotes: 3

LazyOne
LazyOne

Reputation: 165511

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:

Upvotes: 17

Related Questions