title: Eclipse Code Format not working properly
body: <p>First i try this</p>
  
  <ol>
  <li><kbd>Ctrl</kbd>+<kbd>A</kbd></li>
  <li><kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>F</kbd></li>
  </ol>
  
  <p>which is not working, after this
  I search online find different solution for code format in Ecplise for Java code but not working .</p>
  
  <p>I prefer following links:</p>
  
  <p><a href="https://stackoverflow.com/questions/10432538/eclipse-import-conf-xml-files">Eclipse import conf .xml files</a> and </p>
  
  <p><a href="https://stackoverflow.com/questions/8046576/java-how-to-beautify-the-java-code-inside-eclipse-ide?rq=1">Java How to beautify the java code inside Eclipse IDE</a> of answers i followed, <strong>Window->Preferences->Java->Code Formatter->LineSplittin-> Maximum Line length up to 120 or 140 symbols.</strong>.</p>
  
  <p>I also try this also</p>
  
  <p><a href="http://www.coderanch.com/t/105814/vc/format-code-Eclipse" rel="nofollow noreferrer">http://www.coderanch.com/t/105814/vc/format-code-Eclipse</a>  </p>
  
  <p>then, all the above tricks not working then i made new custom like this, but this is not working also.</p>
  
  <p><a href="https://stackoverflow.com/questions/12422640/eclipse-java-code-formatting">Eclipse Java code formatting</a></p>
  
  <p>I used all the above tricks, but everything not working.</p>
  
  <p>My For loop also breaks in new line , like this</p>
  
  <pre><code>for (int j = 0; j &lt; arrayL.size(); j++) {
      System.out.println("arrayL.get(j): " + arrayL.get(j));
      formResults.add(arrayL.get(j));
  }
  </code></pre>
  
  <p>My Code looks like . <img src="https://i.stack.imgur.com/s0Tpm.png" alt="enter image description here"></p>