<p dir="auto">Whenever you are coding and you press ENTER in an indented line, it will add a new line, remove the indentation and start the cursor at the beginning of that line.</p>
<p dir="auto">Setting editor.formatOnType to false disables this behavior.</p>
<ul dir="auto">
<li>VSCode Version: 0.10.11</li>
<li>OS Version: Windows 8.1</li>
</ul>
<p dir="auto">The problem is observed only in the following scenario:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for (i=0; attr &amp;&amp; i&lt;attr.length; i++) {
    if (attr[i].specified) {
        props[attr[i].name] = attr[i].value;
        hasAttrib = true;
    }
}"><pre class="notranslate"><code class="notranslate">for (i=0; attr &amp;&amp; i&lt;attr.length; i++) {
    if (attr[i].specified) {
        props[attr[i].name] = attr[i].value;
        hasAttrib = true;
    }
}
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3126733/14071805/c78772c8-f4c1-11e5-9560-1a1c27ff0a82.png"><img src="https://cloud.githubusercontent.com/assets/3126733/14071805/c78772c8-f4c1-11e5-9560-1a1c27ff0a82.png" alt="image" style="max-width: 100%;"></a><br>
compared to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for (i=0; attr &amp;&amp; i &lt;attr.length; i++) {
    if (attr[i].specified) {
        props[attr[i].name] = attr[i].value;
        hasAttrib = true;
    }
}"><pre class="notranslate"><code class="notranslate">for (i=0; attr &amp;&amp; i &lt;attr.length; i++) {
    if (attr[i].specified) {
        props[attr[i].name] = attr[i].value;
        hasAttrib = true;
    }
}
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3126733/14071816/e4f099b6-f4c1-11e5-85f0-a0cf212ce0fc.png"><img src="https://cloud.githubusercontent.com/assets/3126733/14071816/e4f099b6-f4c1-11e5-85f0-a0cf212ce0fc.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Notice the space between <code class="notranslate">i</code> and <code class="notranslate">&lt;</code>.</p>