title: How to avoid reordering when optimize imports
body: <p>Is there a way to prevents Intellij Idea to rearrange imports when it runs the optimize imports? I want to avoid this since I work on a large codebase where most of others programmers are using Eclipse. When Idea do the optimization (to remove unused imports, for example) it always put these imports to the bottom:</p>
  
  <pre><code>import javax.annotation.Resource;
  import javax.ejb.EJB;
  import javax.ejb.EJBContext;
  import javax.ejb.Local;
  import javax.ejb.Remote;
  import javax.ejb.Stateless;
  import javax.inject.Inject;
  import javax.interceptor.Interceptors;
  import java.util.ArrayList;
  import java.util.List;
  </code></pre>
  
  <p>And when some eclipse users do the same, it are placed to the top. I want to avoid this, since it may annoy others programmers, since I'm the only one that uses Idea IDE in project. </p>
  
  <p>I've googled about it and found old messages, like: 
  <a href="https://youtrack.jetbrains.com/issue/IDEABKL-6456" rel="nofollow noreferrer">https://youtrack.jetbrains.com/issue/IDEABKL-6456</a></p>
  
  <p>I would like to know if there is any good way to do this in the newer Idea versions.</p>
  
  <p>The version is: IntelliJ IDEA 2018.1 (Community)</p>
  
  <ul>
  <li>EDIT -
  Some Infos: </li>
  </ul>
  
  <p>The "Optimize imports on the fly" is already unchecked. </p>
  
  <ul>
  <li>EDIT -
  Solved it with <a href="https://youtrack.jetbrains.com/issue/IDEABKL-6456" rel="nofollow noreferrer">Eclipse Code Formatter</a> plugin. </li>
  </ul>