Intellij IDEA查找匹配的标记标记 [英] Intellij IDEA find matching markup tag

查看:657
本文介绍了Intellij IDEA查找匹配的标记标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有快捷方式或我可以单击以查找标记标记的匹配标记并将焦点/光标放在那里?

Is there a shortcut or where I can click to find the matching tag of a markup tag and bring the focus/cursor there?

例如,
< p>< span>< / span>< div>< / div> < / p>

如果我的光标位于收盘< / p> 标签,我想让IDEA带我到开场< / p> 标签。

If my cursor is on the closing </p> tag, I would like to IDEA to bring me to the opening </p> tag.

推荐答案


  • Ctrl + [转到开头标记

  • Ctrl + ] 转到结束标记

    • Ctrl+[ goes to the opening tag
    • Ctrl+] goes to the closing tag
    • 该操作被称为将插入符号移动到代码块结束/开始并且可以在设置中更改热键。 Keymap

      The action is called Move caret to code block end/start and hotkey can be changed in Settings | Keymap.

      IntelliJ 2017 for Mac 上,快捷键为:


      • Alt + 命令 + [转到开始标记

      • Alt + 命令 + ] 转到关闭标记

      • Alt+Command+[ goes to the opening tag
      • Alt+Command+] goes to the closing tag

      这篇关于Intellij IDEA查找匹配的标记标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆