views:

96

answers:

3

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:

<table>
  <tr>
    <td>
    </td>
  </tr>
</table|>

Cursor is on closing table tag and I would like to press something like CTRL+] to jump to opening table tag.

Any ideas?

A: 

No, you can't do that in Visual Studio - that is, in current version or older ones.- Maybe next version will have this feature...

Seb
+2  A: 

This totally works when you open a HTML file with the XML Editor (Right click -> Open With... -> XML Editor).

Jorge Vargas
LOL ;) this is so funny... now I only need to setup intellisense for HTML in XML view.
kape123
Yeah, this should be the default behavior for an HTML document. Maybe it works with a XHTML document. If it doesn't work by default, you can add a schema file to a xml document like this:http://msdn.microsoft.com/en-us/library/asct4hkz%28VS.71%29.aspx. Here are the schemas for xhtml: http://www.w3.org/TR/xhtml1-schema/#schemas. Also, you can add the xml schema to the schema cache as specified here: http://msdn.microsoft.com/en-us/library/ms255816.aspx. I hope this helps you out with intellisense.
Jorge Vargas
Yeah - I already know how to add intellisense to certain types - just I probably won't be doing all this just get keyboard shortcut working. If I start doing anything - it'll probably be coding of AddIn if this isn't supported.
kape123
Like a teacher of mine said: Well, you can always program it :P
Jorge Vargas
A: 

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

kape123