Class name in live templates

I'm trying to create a simple live template, for Javascript :

//[$className$.$method$]-----------------------
/*
*/
$method$()
{
$end$
}//[*]

I want $className$, to contain by default the current className

I edited the variables,  added className() in the expression field, but it doesn't work
When I expand the template it's empty.

Here is the code of my class :

export class wxcDatesManager extends wxcManagerBase
{
//I'm inserting the template here
}

What am I doing wrong ?

 

 

请先登录再写评论。