The requested page is not available for the requested platform. You are viewing the content for Default platform.

Compress Assignment

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

Examples

a = a + b;
a = a + b

Result:

a += b;
a += b

Screenshot

rsCompressAssignment