title: Is it possible to autoindent code in NetBeans in 1 second?
body: <p>I have this code:</p>
  
  <pre><code>static int kontrolaParityZavorek2(final char[] text, int zacatek) {
  while (zacatek &lt; text.length &amp;&amp; jeOteviraciZavorka(text[zacatek])) {
  int konec = kontrolaParityZavorek2(text, zacatek + 1);
  if (konec &gt;= text.length ||!jsouParove(text[zacatek], text[konec])) 
  {throw new RuntimeException("Chybi uzaviraci zavorka na pozici: " + konec);}
  zacatek = konec + 1;
  }
  return zacatek; 
  }
  </code></pre>
  
  <p>I want to go to NetBeans, paste this code and autoindent the code in 1 second, so that it  looks like this:</p>
  
  <pre><code>static int kontrolaParityZavorek2(final char[] text, int zacatek) {
    while (zacatek &lt; text.length &amp;&amp; jeOteviraciZavorka(text[zacatek])) {
      int konec = kontrolaParityZavorek2(text, zacatek + 1);
      if (konec &gt;= text.length ||!jsouParove(text[zacatek], text[konec])) 
      {throw new RuntimeException("Chybi uzaviraci zavorka na pozici: " + konec);}
      zacatek = konec + 1;
    }
    return zacatek; 
  }
  </code></pre>
  
  <p>Is it possible?
  If so, which key combination should I use or where in MENU can I find the function of AUTO INDENTING.</p>