Compress Assignment
In This Article
Compresses the current assignment to a short form assignment.
#Availability
Available from the context menu or via shortcuts:
- when an assignment expression is selected.
Note
The refactoring is only available if an element in the right part of an assignment expression was previously initialized.
#Notes
- This refactoring is the opposite of Expand Assignment.
#Examples
│a = a + b;
│a = a + b
Result:
│a += b;
│a += b