title: Is it possible to change the way Xcode indents comment lines?
body: <pre><code>      cout&lt;&lt;"hello"&lt;&lt;endl;        //line1
  //    cout&lt;&lt;"hello"&lt;&lt;endl;        //line2
        //    cout&lt;&lt;"hello"&lt;&lt;endl;  //line3
        //cout&lt;&lt;"hello"&lt;&lt;endl;      //line4
        //                                        cout&lt;&lt;"hello"&lt;&lt;endl; //line 5            
  </code></pre>
  
  <p>I write the line1.</p>
  
  <p>Then I comment line1 using command+/, it becomes line2. </p>
  
  <p>But when I Re-Indent line2 using control+I (Or pasting the line to another place in Xcode), It becomes line3. </p>
  
  <p>I think the blank after "//" is very ugly in line3. Sometimes it will be very long such as line 5. </p>
  
  <p>So I want to know is there a shortcut to comment the line1 to line4, so it will not be inflounced by Re-Indent or Paste?</p>
  
  <hr>
  
  <p>Update:</p>
  
  <p><a href="https://stackoverflow.com/questions/2218729/is-it-possible-to-change-the-way-xcode-indents-comment-blocks">Is it possible to change the way Xcode indents comment blocks?</a></p>
  
  <p>I try this command from this answer in command line. And reboot Xcode and system.</p>
  
  <p>But It still get line3.</p>
  
  <pre><code>defaults write com.apple.Xcode XCCodeSenseFormattingOptions -dict PreExpressionsSpacing  "" PreCommaSpacing " "
  </code></pre>
  
  <p>I want to change the way xcode indents comment "line", not "blocks"
  So, this question is different from mine. And it can not solve my problem.</p>