Casebash
Casebash

Reputation: 118792

JetBrains IDE - Keyboard shortcut to jump to closing HTML tag

In JetBrains IDEs (such as WebStorm) is there a keyboard shortcut to jump to the matching end HTML tag or matching beginning HTML tag?

Upvotes: 13

Views: 2242

Answers (2)

djeikyb
djeikyb

Reputation: 4588

There's several options across the Jetbrains suite that all seem like they should work:

  • Move Caret to Matching Brace
  • Move Caret to Code Block Start
  • Move Caret to Code Block End

All three work as expected in WebStorm. In Rider, only "Move Caret to Matching Brace" works for me (xaml file, Rider 2024.2). Unsure if by design or not.

I prefer "Move Caret to Matching Brace" because I usually am thinking "go to the other side", not "go to whatever specific side".

h/t @LazyOne's comment

Upvotes: 0

Adi Levin
Adi Levin

Reputation: 5233

Yes there is:

  • Ctrl - [ to jump to the beginning tag
  • Ctrl - ] to jump to the ending tag

In Settings -> Appearance & Behavior -> Keymap, these are the "Move Caret to Code Block End" and "Move Caret to Code Block Start" actions.

Upvotes: 16

Related Questions