Skip to content

Instantly share code, notes, and snippets.

@estasney
Created December 24, 2023 04:47
Show Gist options
  • Save estasney/87b002b1f9efa9bab07b89fe4a9f27f0 to your computer and use it in GitHub Desktop.
Save estasney/87b002b1f9efa9bab07b89fe4a9f27f0 to your computer and use it in GitHub Desktop.
JetBrains Live Templates GroovyScript
// 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