I have a groovyScript
in my Intellij
IDEA live template, like this :
groovyScript("D:/test.groovy","", v1)
on my D:/test.groovy
i have a code like this:
if ( v1 == 'abc') {
'abc'
}
Now I want to pass v1 variable into test.groovy ,can any one help me how can I do this?
The arguments to groovyScript macro are bound to script variables named _1, _2 etc. This is also described at groovyScript help at Edit Template Variables Dialog / Live Template Variables.