title: What's VS2010 shortcut for surrounding the line in a if block
body: <p>Let's assume I have a following line</p>
  
  <pre><code>myObject.SomeStatement();
  </code></pre>
  
  <p>My cursor is at the end of the line.<br>
  What's the keboard shortcut to put an if statement around it and obtain:</p>
  
  <pre><code>if ()
  {
      myObject.SomeStatement();
  }
  </code></pre>
  
  <p>What's the keboard shortcut to put a for loop around it and obtain:</p>
  
  <pre><code>for (int i = 0; i&lt;length; ++i)
  {
      myObject.SomeStatement();
  }
  </code></pre>