How to change "create function" template to arrow function?

Hello Community!

When a function does not exists and it is called in the source code, ALT+ENTER has an entry called create function <insert name> that generate this code:

function $functionName$ ( $parameterNames$ ) {
$content$
}

Is it possible to tweak this behavior to generate an arrow function instead? Like this:

const $functionName$ = ( $parameterNames$ ) => {
$content$
};

Thank you!

Have a great day!

Sebastien

2 comments
Comment actions Permalink

No, it's not possible; this template is hardcoded

0
Comment actions Permalink

it should, might solve some coding time..

1

Please sign in to leave a comment.