title: Automatic insertion of empty line in Java source on Eclipse
body: <p>I'd like to format Java source on Eclipse below,</p>
  
  <pre class="lang-java prettyprint-override"><code>public void myDoSth() {
  
  // [Rule 1] 1 empty line above, at beginning of method body
  // ...
  // [Rule 2] 1 empty line below, at end of method body
  
  }
  </code></pre>
  
  <p><code>Rule 1</code> above can be configured with <code>project-&gt;properties-&gt;Java Code Style-&gt;Formatter-&gt;Blank Lines-&gt;At beginning of method body</code>.</p>
  
  <p>How about <code>Rule 2</code>? Is it configurable on Eclipse, too?</p>
  
  <p>In general, is it feasible to automatically insert empty line <code>after open brace {</code> or <code>before close brace }</code> in Java source on Eclipse?</p>