Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Visual Studio shortcut for replacing the beginning and ending tag name in XAML/XML/HTML at once?

Tags:

I want something similar to this post but with Visual Studio. This would be very helpful when editing XAML, XML, or HTML.

For instance:

<StackPanel>
    <Button>I'm A Button</Button>
</StackPanel>

If I start changing the 'StackPanel' tag, I want to automatically change the end tag to match (say if I switch it to a 'Grid' instead). I figure I could write a macro to do it, but I want to use a native approach first if available.

like image 786
Jordan Parmer Avatar asked Mar 30 '09 12:03

Jordan Parmer


People also ask

What does Ctrl F do in Visual Studio?

You've probably already discovered the search shortcut Ctrl-F, but did you know Visual Studio Code has different types of find features built-in? Ctrl + F as mentioned above this shortcut will find whatever you search for in the current file.

How do I select a line in Visual Studio?

If you want to select a line or lines you can use the combination of ctrl + E then U . This combination also works for uncommenting a complete line or lines.


1 Answers

CodeRush and Refactor pro from devexpress will do this for you as well as a ton of other cool stuff. It is a paid for product though I'm afraid - I am not aware of anything free that does this.

like image 108
Ian Blackburn Avatar answered Nov 15 '22 05:11

Ian Blackburn