Pass $SELECTION$ to groovy liveTemplate

Hello,

I want use groovyScript in live template but I don't know how can I pass $SELECTION$ to script.

(My template will be based on some selection).

Could you help?

 

1 comment
Comment actions Permalink

It’s quite late for an answer but the information you want is in the Live Template Variable documentation.

groovyScript("return _1;", $SELECTION$)

The function passes other optional arguments to the script as values for _1, _2, _3, ..., _n variables.

0

Please sign in to leave a comment.