user3737860
user3737860

Reputation:

Intellij idea Live templates variable run groovy script relation file path

Live templates -> edit variable. I can specify groovy file in variable settings: groovyScript("C:/test.groovy") Where is "home" directory to store my script? i Want something like that: groovyScript("test.groovy") For easy export config to another PC.

Upvotes: 0

Views: 1457

Answers (1)

Peter Gromov
Peter Gromov

Reputation: 18931

groovyScript's argument can be either the script text itself or a filename. In the latter case the filename is relative to idea or idea/bin directory. It's probably better to use absolute paths.

In recent IDEA builds you can share live templates by copying them to clipboard (Ctrl+C, see https://youtrack.jetbrains.com/issue/IDEA-141077)

Upvotes: 0

Related Questions