xsburg / vscode-javascript-booster

Sprinkle extra refactorings, code actions and commands over your JavaScript! 🍩 TypeScript and Flow are first class citizens as well!
https://marketplace.visualstudio.com/items?itemName=sburg.vscode-javascript-booster
160 stars 13 forks source link

Convert arrow function to function declaration? #27

Closed tranhl closed 4 years ago

tranhl commented 4 years ago

Is this feature available? Example:

const foo = (x) => x + 1

becomes

function foo(x) {
    return x + 1
}
xsburg commented 4 years ago

Thanks for reporting! Implemented in v14.0.0 including preserving type info for React function components.