title: Writing XML Snippets for XML in Visual Studio
body: <p>I've written a number of XML snippets (specifically snippets <em>for</em> XML files) in Visual Studio and I'm encountering an issue where I use the snippet and am done with the replacement parameters and I want to get out of the replacement part of it, I hit enter at the end of the first line and it takes my cursor back to the beginning of the line. </p>
  
  <p>This is one example:</p>
  
  <pre><code>&lt;Code Language="XML"&gt;
    &lt;![CDATA[ &lt;loop id="$Id$" repeat="$Repeat$" ordinal="$Ordinal$"&gt;
            //intentional empty line left here
    &lt;/loop&gt;]]&gt;
  &lt;/Code&gt;
  </code></pre>
  
  <p>I have left out the declarations for brevity. </p>
  
  <p>This snippet generates (with params filled in):</p>
  
  <pre><code>&lt;loop id="1" repeat="10" ordinal="1"&gt;
      | &lt;-- would like cursor to end up here
  &lt;/loop&gt;
  </code></pre>
  
  <p>And I would like the cursor to end up inside the tag, but when I go to the end of the first line and hit enter, the cursor moves to the beginning of the first line and I have to go back to the end of the first line and hit enter again.</p>
  
  <p>This doesn't seem to me like expected behavior, but maybe it is. </p>