Skip to content
| Marketplace
Sign in
Visual Studio>Tools>InvertAssignment
InvertAssignment

InvertAssignment

Miňo Martiniak

|
689 installs
| (1) | Free
This command allow invert assignment for selected lines.
Download

Invert assignment extension

 Features

With InvertAssignment extension you can invert assignment in your selected code.

Select your code, use Invert assignment command (CTRL+E,I) from text editor context menu.

For example from next code:

C#
Edit|Remove
csharp
if (dataRow != null){  person.FirstName = dataRow("FirstName");  person.LastName = dataRow("LastName");  person.Address = dataRow("Address");}
if (dataRow != null) {   person.FirstName = dataRow("FirstName");   person.LastName = dataRow("LastName");   person.Address = dataRow("Address"); }
extension create:
C#
Edit|Remove
csharp
if (dataRow != null){  dataRow("FirstName") = person.FirstName;  dataRow("LastName") = person.LastName;  dataRow("Address") = person.Address;}
if (dataRow != null) {   dataRow("FirstName") = person.FirstName;   dataRow("LastName") = person.LastName;   dataRow("Address") = person.Address; }

 

Context menu -> Invert assgnment (CTRL+E,I)

Screenshots

 

https://mmlib.codeplex.com/

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft