开发者

Intellij IDEA find matching markup tag

开发者 https://www.devze.com 2023-02-15 12:28 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消