Reputation:
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
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