title: How to preserve format while pasting in Visual Studio 2015?
body: <p>I have a switch case in a section of my function, and I need to reorder some of the cases for better code reading. </p>
  
  <p>So the code at the moment looks something like this:</p>
  
  <pre><code>switch(parameter) {
        case "foo" : {DoSomething; DoSomething; DoSomething; DoSomething; break }
        case "bar" : {DoSomething; DoSomething; DoSomething; DoSomething; break }  
        ....
        case "alpha" : {DoSomething; DoSomething; DoSomething; DoSomething; break }
        case "beta" :  {DoSomething; DoSomething; DoSomething; DoSomething; break }
   }
  </code></pre>
  
  <p>So I have hundreads of cases inside this switch statement and I need to reorder most of them. And while reordering, for example if I want to put case foo and case bar below cases alpha and beta. A simple <code>Ctrl+c</code> and <code>Ctrl+v</code> gives me an output like this: </p>
  
  <pre><code>switch(parameter) {
        case "alpha" : {DoSomething; DoSomething; DoSomething; DoSomething; break }
        case "beta" :  {DoSomething; DoSomething; DoSomething; DoSomething; break }
        ......
        case "foo" : {DoSomething; 
                      DoSomething; 
                      DoSomething; 
                      DoSomething; 
                      break }
        case "bar" : {DoSomething;
                      DoSomething; 
                      DoSomething;
                      DoSomething; 
                      break }  
   }
  </code></pre>
  
  <p>Rearranging this text multiple times is a cumbersome task. Is there a way a can duplicate a line as it is in some other part of the code?</p>
  
  <p>For example I want the entire text to remain in a single line as it was before, </p>
  
  <pre><code>  case "foo" : {DoSomething; DoSomething; DoSomething; DoSomething; break }
    case "bar" : {DoSomething; DoSomething; DoSomething; DoSomething; break }  
  </code></pre>