How to make Extract Method (refactoring) to use arrow function by default

When refactoring code in Webstorm the default syntax for a method refactoring will be using the hoisted function syntax. However, I want it to default to using the arrow function syntax.

 

I've seen a few old posts about this years ago, but was wondering if there is a solution now in 2023 since these posts came to no conclusion.

 

My current process has been doing a method refactor and then prompting the context actions in the new function method and using the convert to arrow function feature. However, this becomes tedious when refactoring a large method.

1 comment
Comment actions Permalink

there is no way to customize it, templates are hardcoded. Please vote for WEB-26073 to raise its priority and get notified on updates

0

Please sign in to leave a comment.