P42 Pro Code Assists
P42 Pro contains 14 additional code assists:
- Convert loop to .map()
Convert a loop with
- Flatten array rest/spread property
Merge a ... expression into the outer array literal or destructuring expression.
- Introduce early return / continue
Change an if-statement into an early return or continue statement.
- Move field initialization into constructor
Moves the assignment of the initial field value into the class constructor.
- Move initialization into field declaration
Moves the assignment of the initial field value into the field declaration.
- Push variable declaration into initial value
Inlines a variable that is initialized with another variable into the declaration of that variable.
- Replace with existing variable
Replace an expression with an existing variable.
- Replace _.every with array.every
- Replace _.filter with array.filter
- Replace _.each and _.forEach with array.forEach
- Replace _.map with array.map
- Replace _.noop with arrow Function
() => undefined.
- Replace _.some with array.some
- Select expression occurrences
Start a multi-cursor selection on several occurrences of the same expression.