Is there a short开发者_StackOverflow中文版cut or where I can click to find the matching tag of a markup tag and bring the focus/cursor there?
For example,
<p><span></span><div></div></p>
If my cursor is on the closing </p>
tag, I would like to IDEA to bring me to the opening </p>
tag.
- Ctrl+[ goes to the opening tag
- Ctrl+] goes to the closing tag
The action is called Move caret to code block end/start
and hotkey can be changed in Settings | Keymap
.
On IntelliJ 2017 for Mac the shortcuts are:
- Alt+Command+[ goes to the opening tag
- Alt+Command+] goes to the closing tag
On IntelliJ 2016 for Mac this command seems to be:
- Command+Shift+M goes to the matching tag / brace
On the Mac, I use Move caret to matching brace
, Ctrl+M.
精彩评论