Mix regular imports and static imports in Intellij Idea [closed]

和自甴很熟 提交于 2019-12-08 14:03:47

问题


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?


回答1:


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).



来源:https://stackoverflow.com/questions/15343505/mix-regular-imports-and-static-imports-in-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!