# Make auto-completion work in Kotlin scripts with context

**URL:** <https://discuss.kotlinlang.org/t/make-auto-completion-work-in-kotlin-scripts-with-context/10185>\
**Category:** Support\
**Created:** [November 6, 2018, 8:43am UTC](https://discuss.kotlinlang.org/t/make-auto-completion-work-in-kotlin-scripts-with-context/10185 "2018-11-06T08:43:30Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![ilya.chernikov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/ilya.chernikov/32/1455_2.png) [@ilya.chernikov](https://discuss.kotlinlang.org/u/ilya.chernikov)\
**Post date:** [January 7, 2019, 11:17am UTC](https://discuss.kotlinlang.org/t/make-auto-completion-work-in-kotlin-scripts-with-context/10185/11 "2019-01-07T11:17:19Z")

</div>

The best way is to use `val cfg = createJvmCompilationConfigurationFromTemplate<IntegrationConfiguration>` and then use it as a second param to `eval`.

---

_[View the full topic](https://discuss.kotlinlang.org/t/make-auto-completion-work-in-kotlin-scripts-with-context/10185)._
