Is there way to assign a shortcut key to Auto-close the last open tag?
Right now I have to type </
for it work.
In NPP, I used to press Ctrl+.
and it would automatically insert the last open tag without even prompting. Much easier than typing </
and selecting from a list.
Is there any plugin or feature of phpstorm that can accomplish the same thing?
Thanks!
P.S. Also since this is related, is there a way to move the cursor to the matching tag. If my cursor is on <div id="one">
can the cursor automatically move to the closing tag (or opening tag if my cursor is at the closing tag) using a keyboard shortcut? thanks
You can use Complete statement [Shift+Ctrl+Enter]
command.
<strong>Text
➔
[Shift+Ctrl+Enter]
➔
<strong>Text</strong>