Created
December 24, 2023 04:47
-
-
Save estasney/87b002b1f9efa9bab07b89fe4a9f27f0 to your computer and use it in GitHub Desktop.
JetBrains Live Templates GroovyScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Split a comma sep string into an array | |
groovyScript("def result=_1.split(',').collect { '\"' + it.trim() + '\"' }.findAll { it != '\"\"' }.join(', ');return '[' + result+ ']';", SELECTION) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment