I'm trying to create a Live Template for Kotlin so...
# intellij
c
I'm trying to create a Live Template for Kotlin so I can start with this (where | is the cursor location):
Copy code
class MyClass {
  companion object {
    log|
  }
}
Then when I press <tab>, it expands to this:
Copy code
class MyClass {
  companion object {
    private val log = Logger.getLogger(MyClass::class.java)
  }
}
My template looks as follows:
private val log = Logger.getLogger($CLASS$::class.java)$END$
The problem is, there doesn't appear to be any expression I can use for the $CLASS$ variable that does the correct thing. "KotlinClassName" inserts "Companion", "ClassNameComplete" doesn't insert anything. Any ideas how I can get this working?