# Kotlin Live template in AS 2.3 and IJ 2017

**URL:** <https://discuss.kotlinlang.org/t/kotlin-live-template-in-as-2-3-and-ij-2017/3357>\
**Category:** Uncategorized\
**Created:** [June 16, 2017, 12:31pm UTC](https://discuss.kotlinlang.org/t/kotlin-live-template-in-as-2-3-and-ij-2017/3357 "2017-06-16T12:31:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreartus](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/andreartus/32/5754_2.png) [@andreartus](https://discuss.kotlinlang.org/u/andreartus)\
**Post date:** [June 16, 2017, 12:31pm UTC](https://discuss.kotlinlang.org/t/kotlin-live-template-in-as-2-3-and-ij-2017/3357/1 "2017-06-16T12:31:30Z")

</div>

I would like to create a live template to insert a TAG property/field, e.g.

```nohighlight
companion object {
        private val TAG = $CLASS_NAME$::class.java.name
}

```

I would like to automatically insert the current class name, but it comes up blank whether I set the `Expression` or the `Default value` to _`classNameComplete()`_ in the `Edit Template Variables` dialog.

If I wish to use _`className(sClassName)`_ what should the value for _`sClassName`_ be?

PS.

I tried it scoped to Object and to Class.
