PhpStorm - Use tab and Emmet to wrap code
<p>I love emmet. <code>div.container</code> and then pressing tab has made my life so much easier.</p>

<p>But assume you have a div like this:
<code>&lt;div class="myDiv"&gt; &lt;/div&gt;</code> and you want to wrap that inside a container.</p>

<p>What I've been doing so far is typing out </p>

<pre><code>&lt;div class="container"&gt;

&lt;/div&gt;
</code></pre>

<p>Then I copy paste <code>myDiv</code> in between.</p>

<p>There has to be a simpler way, no?</p>

<p>What I'm looking for is being able to put my cursor in front of <code>&lt;div class="myDiv"&gt;</code>, type out <code>div.container</code> then press tab, and the result would end up like this:</p>

<pre><code>&lt;div class="container"&gt;
    &lt;div class="myDiv"&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>Not even sure what the term for this would be. Searching for "phpstorm wrapping" doesn't give me what I need.</p>

<p>Is there a setting for this somewhere that I've missed?</p>