Visual studio will automatically end the <div> for you when you finish the tag > . This places the cursor between the open and close tags as follows:
<div>|</div>
(where | is your cursor)
However, when you add a class (or another html attribute) to the html element, Visual Studio will leave the cursor inside the quotation marks, for example:
<div class="foo|"></div>
Is there a command to automatically move the cursor to the first bracket of the closing angle as follows:
<div class="foo">|</div>
It seems small, but I need to move my hand through the keyboard to move the cursor 2 spaces. The Edit.GotoBrace command, ctrl + ] , does not do this for me, because the cursor is here:
<div class="foo"></d|iv>
for some reason.
source share