title: Netbeans Auto-Indentation and Curly Braces }{
body: <p>Is it possible to set up the NetBeans editor to automatically unindent closing curly braces?</p>
  
  <p>I want this:</p>
  
  <pre><code>if (something){
      do thing one;
      do thing two;
  }
  </code></pre>
  
  <p>Netbeans gives me this:</p>
  
  <pre><code>if (something){
      do thing one;
      do thing two;
      }
  </code></pre>
  
  <p>and then I have to delete the four preceding spaces which is annoying. It would be nice if it would automatically unindent after typing the closing brace.</p>
  
  <p>Any ideas?</p>
  
  <p>Is it possible to do this with a macro?</p>