Reputation: 11032
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
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
Reputation: 18603
Using PhpStorm 10 && 2016.2:
Ctrl + shift + m
works just fine!
Upvotes: 39
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