Let's say I've got the following code
<div class="footer">
<div>Foo</div>
</div>
How can I change .footer
from a div
element to a footer
element?
That is, if I have the cursor in div
I'm looking for a keyboard shortcut that selects the opening and closing tags of an element. I believe I've used emmet to do this before in Sublime, but I can't seem to find similar functionality in Code. (Ideally this would work in JSX files too...)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…