Is there a shortcut in Visual Studio (2008) that will allow me to jump to matching HTML tag... as CTRL+] does for matching braces when you are in code view?
Example:
In Visual Studio 2012, in 'source' view, right at the bottom of the document window, there is a breadcrumb-trail-style description of the DOM. You can click at any point to select.
It's not a keyboard shortcut, but it does give you the selection behaviour you're looking for, and you don't need to match tags by eye any more.
(Edit) If you hover over the breadcrumb, you will see a dropdown arrow. Click the down arrow and click "Select Tag Content". Then you can just scroll up or down until you find text that is not highlighted.
No, you can't do that in Visual Studio 2010, not in the current version or in older ones. Maybe the next version will have this feature.
I am using Visual Studio Code in Windows 10. Currently version 1.34.0. To jump to the matching html tag, I set it up through File -> Preferences -> Keyboard Shortcuts. Look for "Matching Tag: Jump to matching tag" .. There's a + when you hover it, then I set keybinding Shift + ]
.. you can set your own as long as it isn't used for another function. So now I am able to jump to the closing HTML tag. Hope this helps.
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.
This totally works when you open a HTML file with the XML Editor (Right click -> Open With... -> XML Editor).
Jump to matching tag functionality is easily achieved with this simple extension: VSCode Highlight Matching Tag
Once installed, you may use Command Palette (Win/Linux: Ctrl+Shift+P
; Mac: Cmd+Shift+P
) and search command name: Jump to matching tag
. Or configure keyboard shortcut for that command. Here is my example of key binding for shift+5
in my case:
{
"key": "shift+5",
"command": "highlight-matching-tag.jumpToMatchingTag",
"when": "editorLangId == html"
}