Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Go to closing Tag in Visual studio (using Resharper)?

I'm using the latest Resharper (v 8.1) with visual studio 2010.

Is there a keyboard shortcut/feature to "Jump to closing tag" ?

For example : if the cursor is on the first tr :

enter image description here

I want the cursor to go to the closing tr which is </tr>

Is there any shortcut for this ?

(p.s. - something like goto matchine brace but for Xml/html tags)

like image 628
Royi Namir Avatar asked Dec 15 '13 08:12

Royi Namir


1 Answers

From what I've gathered there's no shortcut for this in either reSharper or Visual Studio. A "work around" would be to collapse the tag using Ctrl + M + M, then go to the start or end of the line using Home or End key. When you open it again using Ctrl + M + M will you be either at the top or bottom of the tag.

  • Ctrl + M + M
  • Home / End (Depending if you want to go to the start or end tag)
  • Ctrl + M + M
like image 72
Arne H. Bitubekk Avatar answered Sep 19 '22 16:09

Arne H. Bitubekk