title: Keep else, catch, on same line as closing bracket in Visual Studio 2015?
body: <p>I've managed to get Visual Studio to keep the opening bracket on the same line like this (the settings for this are under <code>Formatting -&gt; New Lines</code>; the settings I am looking for, if they exist, are not in this area of options):</p>
  
  <pre><code>void foo() {
    bar();
  }
  </code></pre>
  
  <p>but I can't figure out how to keep <strong>else</strong> and <strong>catch</strong> blocks on the same line as the ending bracket of the previous statement.</p>
  
  <p>To clarify, this is what Visual Studio auto-formats to:</p>
  
  <pre><code>if (foo) {
    return 1;
  }
  else {
    return 2;
  }
  </code></pre>
  
  <p>and this is what I want:</p>
  
  <pre><code>if (foo) {
    return 1;
  } else {
    return 2;
  }
  </code></pre>