Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replace tag in xaml VS2010 xaml editor

Is there a possibility in the xaml editor to replace a particular tag, so that it automatically replaces the corresponding closing tag?

my current workflow:

I'm starting with this xaml code:

<StackPanel>
    <Button />
</StackPanel>

then, I've changed my mind and like to use a WrapPanel..

<WrapPanel>
    <Button />
</StackPanel>

then, I have to scroll down to the stackpanel closing tag and replace it ...

<WrapPanel>
    <Button />
</WrapPanel>

--> finished

Is it possible to do these last two steps in a single operation? Something like the rename refactoring in c# code would be useful...

like image 732
doerig Avatar asked Dec 30 '11 15:12

doerig


1 Answers

If you search on the Visual Studio UserVoice forums, you'll find a couple of refactoring requests. After a quick search I couldn't find one for your particular wish, so it might be a good idea to post a new feature request. You'd get my vote!

Otherwise, there's ReSharper, which is a Visual Studio plugin that does what you're looking for, unfortunately you have to pay for it, but there's a 30-day trial.

like image 76
Fueled Avatar answered Oct 17 '22 11:10

Fueled