简体   繁体   English

在 IntelliJ 中导入之前组织静态导入

[英]Organize static imports before before import in IntelliJ

I am new to IntelliJ.我是 IntelliJ 的新手。 I am currently facing an issue where I want to organize the static imports before the general import (Similar to the coding guidelines we have in eclipse).我目前面临一个问题,我想在一般导入之前组织静态导入(类似于我们在 eclipse 中的编码指南)。 I could not find the setting to do so.我找不到这样做的设置。 Not having this would create unnecessary modification in each commit as developers in my team use either Eclipse or IntelliJ.由于我团队中的开发人员使用 Eclipse 或 IntelliJ,因此不这样做会在每次提交中造成不必要的修改。

Thanks谢谢

Settings > Code Style > Java > "Imports" Tab > Import Layout (near the bottom)设置 > 代码样式 > Java > “导入”选项卡 > 导入布局(靠近底部)

More info at: https://www.jetbrains.com/help/idea/2016.2/code-style-java.html#d48088e1314更多信息请访问: https : //www.jetbrains.com/help/idea/2016.2/code-style-java.html#d48088e1314

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM