How does it work?
First install Visual Studio 2015 (Community, Professional or Enterprise).
After that open Visual Studio 2015 and click on "Tools -> Extensions and Updates".
On the left treelist click on "Online".
On the upper right corner search for "AllocationChanger" (https://visualstudiogallery.msdn.microsoft.com/82a3f79e-f052-4c79-803f-3f432be79977)
Download and install it. Now you need to restart Visual Studio 2015.
Now select your code you want to swap and click "Edit -> Change Allocation".
Codesample this Extension work with
Code you want to swap need to have following pattern:
object1.propertie = object2.propertie;
you can select as much lines of code as you want if all the lines match the top pattern.
Usability - Shortcut the Extension
Actually the Extension has no built-in Shortcut.
To accomplish this task you need to do following:
Go to "Tools -> Options -> Environment -> Keyboard" Now search on "Show commands containing:" for "Edit.ChangeAllocation".
Now you have to mark the command and press the shortcut keys you want in the "Press shortcut keys:" - field.
License
The license of this Project is under MIT License. For more info look at License.txt.