Matching tag in HTML keyboard shortcut

In Visual Studio 2015, this is now supported with the usual bracket matching keystrokes;

  • ctrl+] jumps from the start tag to the end tag.
  • ctrl+shift+] selects everything between the start tag and the end tag.

It seems pretty sensitive, though, and to select an entire tag and its contents you need to start right on the < that opens the tag.


I search and couldn't found direct short cut. But you can use..

If you want to go starting matching HTML tag, then follow below steps.

  1. Place cursor at ending matching HTML tag.
  2. Press Ctrl+M+M [To Collapse entire tag]
  3. Press Home Key [To place cursor at before starting tag]
  4. Press Ctrl+M+M [To Expand entire tag]

If you want to go ending matching HTML tag, then follow below steps.

  1. Place cursor at starting matching HTML tag.
  2. Press Ctrl+M+M [To Collapse entire tag]
  3. Press End Key [To place cursor next to ending tag]
  4. Press Ctrl+M+M [To Expand entire tag]

After http://www.jetbrains.com/resharper/ is installed CTRL+] for matching braces works in HTML edit mode...