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
请先登录再写评论。
No, it's not possible; this template is hardcoded
it should, might solve some coding time..