سؤال

By default, Intellij Idea separates regular imports and static imports. Like

 import com.a;
 import com.b;

 import static com.a.C.foo;

What I want is placing it together. Like

 import com.a;
 import static com.a.C.foo;
 import com.b;

How can I configure such layout?

هل كانت مفيدة؟

المحلول

You can find a Layout static imports separately option in Settings/Code Style/Java/Import Tab (you might have to scroll tabs horizontally for this).

enter image description here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top