title: Which text editors have a format code option?
body: <p>I'm looking for a basic text-editor with code format like NetBeans or Intellij.</p>
  
  <p>In NetBeans IDE and Intellij IDE you have the option <strong>format code.</strong>
  Something like this, </p>
  
  <pre><code>if( a == b )
  {
                            bla;
  bla;
                bla;
  
  }
  </code></pre>
  
  <p>after using this feature it will look like this:</p>
  
  <pre><code>if( a == b ){
            bla;
            bla;
            bla;
  }
  </code></pre>
  
  <p>P.S. I want the same thing which NetBeans and Intellij are offering. 
  I want a text editor, because I'm at beginning with Java and the IDE's are not very good for a beginner.</p>