title: How to set code formatting to allow end-of-line comments?
body: <p>The C# code formatting in Xamarin Studio (i.e. when hitting Ctrl-I to format the document) puts end of line comments onto a new line. I can't find any way to change this in the C# code formatting policy settings. How to change this to preserve end of line comments on the same line?</p>
  
  <p>For example, take this code:</p>
  
  <pre><code>public class Foo
  {
      int bar; // comment
  }
  </code></pre>
  
  <p>If I hit Ctrl-I (or alternately click Edit > Format > Format Document from the menu, or select the code and click Edit > Format > Format Selection from the menu), the code is reformatted as:</p>
  
  <pre><code>public class Foo
  {
      int bar; 
      // comment
  }
  </code></pre>
  
  <p>I'm using <s>v4.2.2 build 2</s> <strong>v4.3 build 52</strong> on OS X.</p>
  
  <p>Note: it seems this is a <a href="http://forums.xamarin.com/discussion/9985/how-to-set-c-code-formatting-to-allow-end-of-line-comments#latest" rel="nofollow">bug</a>. So my question really is -- has anyone who has also encountered this come up with a fix or workaround and if so what is it?</p>