Pass $SELECTION$ to groovy liveTemplate Permanently deleted user Created February 27, 2016 18:20 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?
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.”