How can I change IntelliJ "Class to Import" order? -


code - before:

import org.junit.assert; ... assert.assertequals(a,b); assert.assertequals(c,d); 

steps:

  1. i remove first assert.:

    assertequals(a,b); assert.assertequals(c,d); 

    now first assertequals red.

  2. now click on first assertequals , hit alt + enter

    enter image description here

  3. i select "static import method..." , see following popup: enter image description here

    if click on last line (the blue line) lines containing assert.assertequals... become assertequals....

code - after:

import static org.junit.assert.assertequals; ... assertequals(a,b); assertequals(c,d); 

questions

is possible change order in "class import" window? want see blue line (org.junit) in first place.

or possible remove other options? every assert want use org.junit.assert.

details:

  • windows 7
  • intellij idea 14.1.3

you can go file -> settings... (ctrl + alt + s) -> editor -> general -> auto import , add packages exclude import , completion don't want see.

enter image description here


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -