<p dir="auto">When copying a segment of code that starts with a new-line followed by tabbed-in code while "Auto Indent On Paste" is enabled, consecutive pastes will each be an additional tab deeper. I tested this with C++, Java, and JavaScript which makes me believe it is not a problem with the language specs.</p>
<p dir="auto">Here is an example in the form of an animated gif:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/466761/6118758/d4ce2e04-b075-11e4-864b-46726fcd809e.gif"><img src="https://cloud.githubusercontent.com/assets/466761/6118758/d4ce2e04-b075-11e4-864b-46726fcd809e.gif" alt="autoindent-2" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">It isn't just comments that this happens with, but it does require the previous line to be selected. Specifically, this happens when the copy-buffer matches a regex like <code class="notranslate">/^\n\s+[^\s]/</code>. That is, it starts with a newline, followed by one or more whitespace characters and then a non-whitespace character. And the previous line must be a blank line.</p>
<p dir="auto">Halp ticket:</p>
<ul dir="auto">
<li>support/c7984784bffc11e3936c51033c8a3e07</li>
</ul>
<blockquote>
<p dir="auto">Snippet system needs to be worked on, when i setup a snippet in the config file, and then i save it and go back to my work, i use the short word and hit tab, and nothing ever expands.</p>
</blockquote>
<p dir="auto">I could reproduce this:</p>
<ol dir="auto">
<li>quit Atom</li>
<li>remove ~/.atom/snippets.cson</li>
<li>start Atom</li>
<li>go "Atom &gt; Open your snippets", and add a snippet to snippets.cson</li>
<li>try triggering the snippet you just added -- it won't work</li>
<li>quit and restart Atom</li>
<li>try triggering the snippet again -- it will work</li>
</ol>