ixx
ixx

Reputation: 32269

Eclipse: Shortcut to jump to matching tag of XML element

I tried with CTRL + SHIFT + P, this works for brackets in code, but not in XML (tried different positions, before the opening tag, after, etc.).

There's CTRL + SHIFT + Arrow down/up to go to the next/previous element, this helps most cases, but I also need to jump to the matching tag.

Upvotes: 18

Views: 8740

Answers (3)

ixx
ixx

Reputation: 32269

Ctrl+Shift+p is now working. Don't remember, maybe I reinstalled Eclipse or did an update. It's working now.

Upvotes: 1

Ravi
Ravi

Reputation: 553

@aleroot is correct. If you are using WTP XML editor. You can see this option in Navigate -> Go to -> Matching tag. Just a tip, for the complete list of shortcuts, you can use Control + Shift + L

Matching tag

Upvotes: 31

aleroot
aleroot

Reputation: 72696

  1. Position the cursor on the opening/closing tag you’re interested in. It can be anywhere in the tag.
  2. Press Ctrl+Shift+>. Eclipse takes you to the matching opening/closing tag.

Upvotes: 15

Related Questions