Reputation: 9133
Is an automatic conversion of the following kind possible?
const cuteLittleFunction = input=>value;
to:
const cuteLittleFunction = input=> {
return value;
};
I find myself doing this a lot, and it gets pretty annoying.
Upvotes: 1
Views: 502
Reputation: 93728
Put cursor on input
, hit Alt+Enter
, choose Add braces to arrow function statement:
Code will be changed to
const cuteLittleFunction = input => {
return value;
};
Upvotes: 4