How can I change IntelliJ "Class to Import" order? -
code - before:
import org.junit.assert; ... assert.assertequals(a,b); assert.assertequals(c,d);
steps:
i remove first
assert.
:assertequals(a,b); assert.assertequals(c,d);
now first
assertequals
red.now click on first
assertequals
, hit alt + enteri select "static import method..." , see following popup:
if click on last line (the blue line) lines containing
assert.assertequals...
becomeassertequals...
.
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.
Comments
Post a Comment