title: How to edit with multiple-selections in RStudio?
body: <pre><code>names(mydata)[names(mydata)=="q1"] &lt;- "q01"  
  </code></pre>
  
  <p>I want to select 2 <code>mydata</code> at the same time and then can edit them at the same time.  </p>
  
  <p>Some advanced text editors let you have multiple cursors, so that, for example, if I select both "mydata" in this line, and then hit delete and type "otherdata", I end up with:</p>
  
  <pre><code>names(otherdata)[names(otherdata)=="q1"] &lt;- "q01"  
  </code></pre>
  
  <p>Although this can be done here with a simple search and replace, sometimes having multiple selection and multiple cursors is possibly easier.</p>
  
  <p>The Sublime Text editor can do this, as can Atom and Emacs.</p>