Idea live template

Answered

Hello,

 

I try to configure custom live template. I need apply live template to class field. I've created live template .bean in java scope.

I expect result like this:

 

But i got next result:

 

My live template settings:

 

How i able to get field name in class and wrap my class to  public BeanGetter<$FIELD_NAME$> suggestClassNameVariable()?

 

Thank you in advance.

0
1 comment

Hello,

 

It's not possible, but as a workaround you could use surround template. So you'll need to select "Test" and run "Surround with live template"

Also you could try this plugin: https://plugins.jetbrains.com/plugin/9862-custom-postfix-templates

0

Please sign in to leave a comment.