Scratch file not running on IntelliJ IDEA : <p>I am trying to run a <strong>Kotlin</strong> <a href="https://www.jetbrains.com/help/idea/scratches.html" rel="noreferrer">scratch file</a> in IntelliJ just like you would run a Java scratch file, but it doesn't work.</p>

<p>I created a new Kotlin scratch file, but can't run the code even after attempting the following:</p>

<ul>
<li>Create a <code>main</code> function and print something inside.</li>
<li>Print something with <code>println</code> outside of the main function.</li>
<li>Create a <code>class</code> with a <code>main</code> function inside and <code>println</code> something.</li>
</ul>

<p>When I create a new kotlin project, the project runs fine. 
The issue happens only with scratch files. I am using kotlin plugin version 1.1.51 on IntelliJ 2017.1</p>

<p>As the screenshot shows, the icon that allows you to run kotlin code doesn't show up on the left of the editor window:</p>

<p><a href="https://i.stack.imgur.com/dcoLj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/dcoLj.png" alt="enter image description here"></a></p>
