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...
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With