Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shortcut key in PhpStorm to move to HTML end tag

Tags:

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.

like image 738
URL87 Avatar asked Aug 21 '14 08:08

URL87


People also ask

How to set shortcut keys in PhpStorm?

Add a mouse shortcutOn the Keymap page of the Settings/Preferences dialog Ctrl+Alt+S , right-click an action and select Add Mouse Shortcut. In the Mouse Shortcut dialog, move the mouse pointer to the central area and click or scroll as necessary. Click OK to save the shortcut.

How do you make a closing tag in HTML?

An opening tag begins a section of page content, and a closing tag ends it. For example, to markup a section of text as a paragraph, you would open the paragraph with an opening paragraph tag <p> and close it with a closing paragraph tag </p> (closing tags always proceed the element with a /).

How do I find a file in PhpStorm?

From the main menu, select Edit | Find | Find in Files Ctrl+Shift+F . In the search field, type your search string. Alternatively, in the editor, highlight the string you want to find and press Ctrl+Shift+F . PhpStorm places the highlighted string into the search field.


1 Answers

Using PhpStorm 10 && 2016.2:

Ctrl + shift + m works just fine!

like image 75
azerafati Avatar answered Sep 29 '22 22:09

azerafati